-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow assets managed by AssetManager and EvmForeignAssets to use the pallet-xcm precompile #3136
Conversation
…AssetManager as asset managers
WASM runtime size check:Compared to target branchMoonbase runtime: 2284 KB (no changes) ✅ Moonbeam runtime: 2264 KB (no changes) ✅ Moonriver runtime: 2252 KB (no changes) ✅ Compared to latest release (runtime-3400)Moonbase runtime: 2284 KB (+256 KB compared to latest release) Moonbeam runtime: 2264 KB (+252 KB compared to latest release) Moonriver runtime: 2252 KB (+240 KB compared to latest release) |
EvmForeignAssets
and AssetManager
as asset managers
Coverage Report@@ Coverage Diff @@
## master rq/update-AssetIdToLocationManager +/- ##
=====================================================================
Coverage 74.47% 74.47% 0.00%
Files 377 377
Lines 95720 95720
=====================================================================
Hits 71283 71283
Misses 24437 24437
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Double-check: using this tuple type we'll have the runtime trying to convert the AssetId into a Location using fist AsAssetType<...>
and, if it fails, falling back on EvmForignAsset
. Correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; should we add an integration test?
Yes, exactly. |
Added a test with the old approach, the assets manager pallet is going to be removed in future upgrades. |
What does it do?
Followup of #3107
This change allows assets managed by
AssetManager
andEvmForeignAssets
to use the pallet-xcm precompile.