Skip to content

Conversation

@pgherveou
Copy link
Contributor

Summary

  • Remove ForeignAssetId associated type from pallet::Config trait, hardcoding to Location instead
  • Simplifies configuration since foreign assets are always identified by XCM Locations in practice
  • Update storage types, mock, and tests to use Location directly

Test plan

  • Existing tests pass with updated mock using Location as asset ID
  • Review that the simplification doesn't break any downstream usage

Simplify the foreign assets precompile configuration by hardcoding
the asset ID type to `Location` instead of using a generic associated
type. This aligns with the actual usage in runtimes where foreign
assets are always identified by XCM Locations.

Changes:
- Remove `ForeignAssetId` from `pallet::Config` trait
- Update storage types to use `Location` directly
- Update mock to use `Location` as `AssetId` for pallet_assets
- Update tests to use `Location` instead of `u32`
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