-
Notifications
You must be signed in to change notification settings - Fork 721
Disable xcm method #1558
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
Disable xcm method #1558
Conversation
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.
I would recommend to use allow list on pallet-xcm, instead of block list. Polkadot xcm pallet has been adding dispatchable calls in it's new releases, and it's easy to miss new added calls with block list.
|
best to do a exhaustive match listing all the calls so in future if new calls are introduced, it will be a compiling error |
|
As the Call enum has __Ignore case, so here the default case we return unimplemented!() Modified: use the __Ignore instead of _, this can ensure that if there're method changes in pallet-xcm, then we should change this BaseFilter, or-else it'll have compiling error. |
|
@zjb0807 would you look at the failed e2e-tests? |
Retry it works. |
…eriodic-update * origin/master: Feature/add update available staking (#1514) Clean Dependencies (#1577) Disable xcm method (#1558) # Conflicts: # modules/homa-lite/src/benchmarking.rs # modules/homa-lite/src/lib.rs # modules/homa-lite/src/tests.rs # modules/homa-lite/src/weights.rs # runtime/acala/src/weights/module_homa_lite.rs # runtime/karura/src/weights/module_homa_lite.rs # runtime/mandala/src/weights/module_homa_lite.rs
issue: #1557