Skip to content

Commit

Permalink
Move DescendOrigin to first
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Dec 2, 2023
1 parent 323d987 commit 4a63c68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parachain/primitives/router/src/inbound/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,13 @@ where
let inbound_queue_pallet_index = InboundQueuePalletInstance::get();

let xcm: Xcm<()> = vec![
DescendOrigin(X1(PalletInstance(inbound_queue_pallet_index))),
// Teleport required fees.
ReceiveTeleportedAsset(total.into()),
// Pay for execution.
BuyExecution { fees: xcm_fee, weight_limit: Unlimited },
// Fund the snowbridge sovereign with the required deposit for creation.
DepositAsset { assets: Definite(deposit.into()), beneficiary: bridge_location },
DescendOrigin(X1(PalletInstance(inbound_queue_pallet_index))),
// Change origin to the bridge.
UniversalOrigin(GlobalConsensus(network)),
// Call create_asset on foreign assets pallet.
Expand Down
2 changes: 1 addition & 1 deletion polkadot-sdk

0 comments on commit 4a63c68

Please sign in to comment.