Skip to content

Conversation

@crStiv
Copy link

@crStiv crStiv commented May 21, 2025

Convert weight.ref_time() casting from u128 to u64 as appropriate for the Weight implementation.

Changed in:

  • primitives/src/xcm/mod.rs (buy_weight and refund_weight methods)
  • primitives/src/xcm/tests.rs (execution_fee function)
  • pallets/xc-asset-config/src/lib.rs (weight_to_fee method)

This fixes a potential overflow issue when working with large weight values.

@Dinonard
Copy link
Contributor

Thank you but we don't need this right now.

@Dinonard Dinonard closed this Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants