mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-01 04:31:02 +00:00
* Use into_account_truncating Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * more truncating * more truncating * more * clean up parachain primitives * more truncating * update lockfile for {"substrate"} Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
2907a7aeae
commit
157b5186ba
@@ -70,7 +70,7 @@ impl<ParaId: From<u32> + Into<u32> + AccountIdConversion<AccountId>, AccountId:
|
||||
fn convert_ref(location: impl Borrow<MultiLocation>) -> Result<AccountId, ()> {
|
||||
match location.borrow() {
|
||||
MultiLocation { parents: 0, interior: X1(Parachain(id)) } =>
|
||||
Ok(ParaId::from(*id).into_account()),
|
||||
Ok(ParaId::from(*id).into_account_truncating()),
|
||||
_ => Err(()),
|
||||
}
|
||||
}
|
||||
@@ -91,7 +91,7 @@ impl<ParaId: From<u32> + Into<u32> + AccountIdConversion<AccountId>, AccountId:
|
||||
fn convert_ref(location: impl Borrow<MultiLocation>) -> Result<AccountId, ()> {
|
||||
match location.borrow() {
|
||||
MultiLocation { parents: 1, interior: X1(Parachain(id)) } =>
|
||||
Ok(ParaId::from(*id).into_account()),
|
||||
Ok(ParaId::from(*id).into_account_truncating()),
|
||||
_ => Err(()),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user