Skip to content

Commit

Permalink
Remove Snowbridge teleports (Snowfork#1069)
Browse files Browse the repository at this point in the history
* re-order xcm

* update polkadot-sdk

* fix tests

* fixed comment

* update polkadot-sdk
  • Loading branch information
alistair-singh authored Dec 19, 2023
1 parent e5ac19e commit 5aca479
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions parachain/pallets/inbound-queue/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ fn test_submit_happy_path() {
.into(),
nonce: 1,
message_id: [
87, 139, 41, 107, 220, 225, 189, 145, 129, 58, 178, 27, 103, 150, 141, 241, 152,
122, 46, 202, 151, 237, 245, 152, 195, 58, 50, 16, 71, 96, 89, 87,
27, 217, 88, 127, 46, 143, 199, 70, 236, 66, 212, 244, 85, 221, 153, 104, 175, 37,
224, 20, 140, 95, 140, 7, 27, 74, 182, 199, 77, 12, 194, 236,
],
}
.into()]);
Expand Down
3 changes: 2 additions & 1 deletion parachain/primitives/router/src/inbound/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,14 @@ 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 },
// Only our inbound-queue pallet is allowed to invoke `UniversalOrigin`
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 5aca479

Please sign in to comment.