Skip to content

Conversation

@PanGan21
Copy link
Contributor

@PanGan21 PanGan21 commented Jan 4, 2026

Related: #10694, #10515

Migrates all exchange_asset tests from the integration test suite to unit tests under the AssetHubWestend runtime module using asset-test-utils. Creates a reusable exchange_asset_on_asset_hub_works helper function reducing duplication and improving maintainability.

@cla-bot-2021
Copy link

cla-bot-2021 bot commented Jan 4, 2026

User @PanGan21, please sign the CLA here.

@PanGan21
Copy link
Contributor Author

PanGan21 commented Jan 4, 2026

/cmd label T6-XCM T10-tests

@paritytech-cmd-bot-polkadot-sdk paritytech-cmd-bot-polkadot-sdk bot added T10-tests This PR/Issue is related to tests. T6-XCM This PR/Issue is related to XCM. labels Jan 4, 2026
@PanGan21 PanGan21 changed the title integrate asset test utilities for asset hub westend Integrate asset test utilities for asset hub westend Jan 4, 2026
@raymondkfcheung
Copy link
Contributor

/cmd fmt

@raymondkfcheung
Copy link
Contributor

/cmd prdoc --audience runtime_dev --bump patch

Comment on lines +1969 to +1986
fn exchange_asset_success() {
exchange_asset_on_asset_hub_works::<
Runtime,
RuntimeCall,
RuntimeOrigin,
Block,
ForeignAssetsInstance,
>(
collator_session_keys(),
ASSET_HUB_ID,
AccountId::from(ALICE),
WestendLocation::get(),
true,
500 * UNITS,
665 * UNITS,
None,
);
}
Copy link
Contributor

@x3c41a x3c41a Jan 8, 2026

Choose a reason for hiding this comment

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

OOC: I was looking for a pattern name and it turned out that
::<...> syntax in Rust community is called turbofish 😅

@raymondkfcheung raymondkfcheung added this pull request to the merge queue Jan 8, 2026
Merged via the queue into paritytech:master with commit 85b9ae1 Jan 8, 2026
228 of 238 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T6-XCM This PR/Issue is related to XCM. T10-tests This PR/Issue is related to tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants