Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 87ed097

Browse files
committed
Move Transact after Origin operations
1 parent 76b01b2 commit 87ed097

File tree

1 file changed

+1
-1
lines changed
  • bridges/snowbridge/primitives/router/src/inbound

1 file changed

+1
-1
lines changed

bridges/snowbridge/primitives/router/src/inbound/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,13 @@ where
351351
// the dest chain to implement a custom Barrier which inspect the fee as
352352
// expected(i.e. can cover the transact cost to avoid spamming)
353353
BurnAsset(xcm_fee.clone().into()),
354-
Transact { origin_kind, require_weight_at_most: weight_at_most, call: payload.into() },
355354
// Only our inbound-queue pallet is allowed to invoke `UniversalOrigin`
356355
DescendOrigin(PalletInstance(InboundQueuePalletInstance::get()).into()),
357356
// Change origin to the bridge.
358357
UniversalOrigin(GlobalConsensus(Ethereum { chain_id })),
359358
// DescendOrigin to the sender.
360359
DescendOrigin(AccountKey20 { network: None, key: sender.into() }.into()),
360+
Transact { origin_kind, require_weight_at_most: weight_at_most, call: payload.into() },
361361
// Forward message id
362362
SetTopic(message_id.into()),
363363
];

0 commit comments

Comments
 (0)