We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c063fc commit 76d0057Copy full SHA for 76d0057
contracts/crosschain/CrosschainLinked.sol
@@ -97,7 +97,9 @@ abstract contract CrosschainLinked is ERC7786Recipient {
97
address instance,
98
bytes calldata sender
99
) internal view virtual override returns (bool) {
100
- (address gateway, bytes memory router) = getLink(_extractChain(sender));
+ (bytes2 chainType, bytes calldata chainReference, ) = sender.parseV1Calldata();
101
+ bytes memory chain = InteroperableAddress.formatV1(chainType, chainReference, hex"");
102
+ (address gateway, bytes memory router) = getLink(chain);
103
return instance == gateway && sender.equal(router);
104
}
105
0 commit comments