Companion for #7329: XCM: Remove & replace Polkadot's Convert trait (#2688)

* Fixups for new Convert APIs

* update lockfile for {"polkadot", "substrate"}

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
Gavin Wood
2023-06-05 12:40:33 +01:00
committed by GitHub
parent 15c49c49ee
commit 2a4edaf39c
11 changed files with 394 additions and 327 deletions
+2 -2
View File
@@ -389,7 +389,7 @@ macro_rules! __impl_relay {
}
pub fn sovereign_account_id_of(location: $crate::MultiLocation) -> $crate::AccountId {
<Self as RelayChain>::SovereignAccountOf::convert(location.into()).unwrap()
<Self as RelayChain>::SovereignAccountOf::convert_location(&location).unwrap()
}
pub fn fund_accounts(accounts: Vec<(AccountId, Balance)>) {
@@ -654,7 +654,7 @@ macro_rules! __impl_parachain {
}
pub fn sovereign_account_id_of(location: $crate::MultiLocation) -> $crate::AccountId {
<Self as Parachain>::LocationToAccountId::convert(location.into()).unwrap()
<Self as Parachain>::LocationToAccountId::convert_location(&location).unwrap()
}
pub fn fund_accounts(accounts: Vec<(AccountId, Balance)>) {