-
Notifications
You must be signed in to change notification settings - Fork 815
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
Added foreign locations to local accounts converter to all the parachains #5765
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.
Request changes
Do not remove existing converters to maintain backwards compatibility (see following comments)
Testing
For each chain/runtime, please add unit tests (faster/easier than emulated tests) that cover the newly supported conversions.
E.g. you can add new test for asset-hub-westend here, then run it with cargo test -r -p asset-hub-westend-runtime
. Do the same for other runtimes too.
In terms of how to test, very easy way is using LocationToAccountHelper::convert_location()` and pass it locations that use to fail conversion, but with your change now succeed.
You can see an example of how to call LocationToAccountHelper
here.
cumulus/parachains/runtimes/people/people-rococo/src/xcm_config.rs
Outdated
Show resolved
Hide resolved
cumulus/parachains/runtimes/people/people-westend/src/xcm_config.rs
Outdated
Show resolved
Hide resolved
cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/xcm_config.rs
Show resolved
Hide resolved
cumulus/parachains/runtimes/assets/asset-hub-westend/src/xcm_config.rs
Outdated
Show resolved
Hide resolved
bot fmt |
…xcm_config.rs Co-authored-by: Branislav Kontur <[email protected]>
Added the tests. Additionally removed my change and made sure that the tests fail. |
cumulus/parachains/runtimes/assets/asset-hub-rococo/tests/tests.rs
Outdated
Show resolved
Hide resolved
cumulus/parachains/runtimes/assets/asset-hub-rococo/tests/tests.rs
Outdated
Show resolved
Hide resolved
Review required! Latest push from author must always be reviewed |
cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/tests/tests.rs
Outdated
Show resolved
Hide resolved
Added location convertion tests. Polkadot sdk [PR](paritytech/polkadot-sdk#5765) Fixes #488
Added
HashedDescription<AccountId, DescribeFamily<DescribeAllTerminal>>
foreign locations to local accounts converter to all the parachains.