Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DZGoldman committed Oct 13, 2022
1 parent df3f6a4 commit 6c9a24b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions contracts/ethereum/L1NftGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,7 @@ contract L1NftGateway is IERC721Receiver {
}

modifier onlyCounterpartL2Gateway() {
// a message coming from the counterpart gateway was executed by the bridge
require(msg.sender == bridge, "NOT_FROM_BRIDGE");

// and the outbox reports that the L2 address of the sender is the counterpart gateway
IOutbox outbox = IOutbox(IBridge(bridge).activeOutbox());
address l2ToL1Sender = outbox.l2ToL1Sender();

require(
l2ToL1Sender == counterpartL2Gateway,
"ONLY_COUNTERPART_GATEWAY"
);
// Do!
_;
}

Expand Down

0 comments on commit 6c9a24b

Please sign in to comment.