Skip to content

Conversation

@claravanstaden
Copy link
Contributor

@claravanstaden claravanstaden commented Dec 5, 2025

Update the gas estimator to work with updated runtime definitions.

Comment on lines +286 to +302
// Query delivery fees using XCM Payment API, latest API specifies the fee asset
#[cfg(feature = "local")]
let runtime_api_call = {
let dot_asset = BridgeHubLocation {
parents: 1,
interior: BridgeHubJunctions::Here,
};
bridge_hub_runtime::apis()
.xcm_payment_api()
.query_delivery_fees(
versioned_destination,
bridge_hub_xcm,
VersionedAssetId::V5(BridgeHubAssetId(dot_asset)),
)
};

#[cfg(not(feature = "local"))]
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, this change also applies to the Westend runtimes as well.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants