Skip to content

Conversation

@0xRVE
Copy link
Contributor

@0xRVE 0xRVE commented Jan 22, 2026

fixes #8659

Adds ForeignAssetIdExtractor which converts a u32 asset id to an XCM Location type.

@0xRVE 0xRVE requested a review from a team as a code owner January 22, 2026 09:46
@0xRVE 0xRVE requested review from acatangiu and bkchr January 22, 2026 09:49
@0xRVE
Copy link
Contributor Author

0xRVE commented Jan 22, 2026

/cmd prdoc --audience runtime_dev --bump minor

@0xRVE 0xRVE added the T1-FRAME This PR/Issue is related to core FRAME, the framework. label Jan 22, 2026
@0xRVE 0xRVE changed the title [WIP][pallet-assets] ad ForeignAssetIdExtractor to assets precompile [WIP][pallet-assets] add ForeignAssetIdExtractor to assets precompile Jan 22, 2026
@0xRVE 0xRVE added the T7-smart_contracts This PR/Issue is related to smart contracts. label Jan 22, 2026
@acatangiu
Copy link
Contributor

Another general comment is that it needs more tests (easy to use Claude for writing tests fast).

@0xRVE 0xRVE force-pushed the rve/8659-assets-precompile branch from 27ff790 to 06b9f65 Compare January 23, 2026 07:52
@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/21282867976
Failed job name: test-linux-stable-int

@0xRVE 0xRVE requested review from acatangiu and pgherveou January 23, 2026 15:08
@0xRVE
Copy link
Contributor Author

0xRVE commented Jan 23, 2026

Another general comment is that it needs more tests (easy to use Claude for writing tests fast).

done

Revive: pallet_revive = 60,

AssetRewards: pallet_asset_rewards = 61,
ForeignAssetsPrecompiles: pallet_assets_precompiles::pallet = 62,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ForeignAssetsPrecompiles: pallet_assets_precompiles::pallet = 62,
AssetsPrecompiles: pallet_assets_precompiles::pallet = 62,

asset_index,
));

println!("asset_addr: {:?}", asset_addr);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use tracing or log instead of println even in tests

Suggested change
println!("asset_addr: {:?}", asset_addr);
tracing::info!("asset_addr: {:?}", asset_addr);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T1-FRAME This PR/Issue is related to core FRAME, the framework. T7-smart_contracts This PR/Issue is related to smart contracts.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement pallet-asset matcher for Foreign assets

3 participants