Skip to content

Commit

Permalink
Fix astar FailedToTransactAsset error (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
hqwangningbo authored Apr 7, 2023
1 parent 4fdd303 commit 3a9596f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion runtime/bifrost-polkadot/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,19 @@ impl<T: Get<ParaId>> Convert<MultiLocation, Option<CurrencyId>> for BifrostCurre
if ((id == parachains::moonbeam::ID) &&
(index == parachains::moonbeam::PALLET_ID)) =>
Some(Token2(GLMR_TOKEN_ID)),

X2(Parachain(id), GeneralKey { data, length })
if (id == u32::from(ParachainInfo::parachain_id())) =>
{
let key = &data[..length as usize];
if let Ok(currency_id) = CurrencyId::decode(&mut &key[..]) {
match currency_id {
Native(BNC) => Some(currency_id),
_ => None,
}
} else {
None
}
},
_ => None,
},
MultiLocation { parents, interior } if parents == 0 => match interior {
Expand Down

0 comments on commit 3a9596f

Please sign in to comment.