Skip to content

Commit

Permalink
use descend origin instead of alias origin
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Dec 5, 2024
1 parent bc45bbd commit 9ffb3e1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bridges/snowbridge/primitives/router/src/inbound/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,7 @@ where
// the original sender on Ethereum. Important to be before the arbitrary XCM that is
// appended to the message on the next line.
if message.origin != GatewayProxyAddress::get() {
let origin_location = Location::new(
2,
[
GlobalConsensus(network),
AccountKey20 { key: message.origin.into(), network: None },
],
);
instructions.push(AliasOrigin(origin_location.into()));
instructions.push(DescendOrigin(AccountKey20 { key: message.origin.into(), network: None}.into()));
}

// Add the XCM sent in the message to the end of the xcm instruction
Expand Down

0 comments on commit 9ffb3e1

Please sign in to comment.