asset-hubs: simplify xcm-config (#6222)
`ForeignCreatorsSovereignAccountOf` is used by `ForeignCreators` filter
to convert location to `AccountId`, _after_ `ForeignCreators::IsForeign`
filter passes for an (asset, location) pair.
The `IsForeign` filter is the actual differentiator, so if a location
passes it, we should support converting it to an `AccountId`.
As such, this commit replaces `ForeignCreatorsSovereignAccountOf`
converter with the more general `LocationToAccountId` converter.
Signed-off-by:
Adrian Catangiu <adrian@parity.io>
parent
efd66030
Showing
- cumulus/parachains/runtimes/assets/asset-hub-rococo/src/lib.rs 2 additions, 2 deletions...us/parachains/runtimes/assets/asset-hub-rococo/src/lib.rs
- cumulus/parachains/runtimes/assets/asset-hub-rococo/src/xcm_config.rs 0 additions, 8 deletions...chains/runtimes/assets/asset-hub-rococo/src/xcm_config.rs
- cumulus/parachains/runtimes/assets/asset-hub-rococo/tests/tests.rs 4 additions, 4 deletions...arachains/runtimes/assets/asset-hub-rococo/tests/tests.rs
- cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs 4 additions, 4 deletions...s/parachains/runtimes/assets/asset-hub-westend/src/lib.rs
- cumulus/parachains/runtimes/assets/asset-hub-westend/src/xcm_config.rs 0 additions, 8 deletions...hains/runtimes/assets/asset-hub-westend/src/xcm_config.rs
- cumulus/parachains/runtimes/assets/asset-hub-westend/tests/tests.rs 4 additions, 5 deletions...rachains/runtimes/assets/asset-hub-westend/tests/tests.rs
Please register or sign in to comment