Skip to content

Commit 86f99ab

Browse files
committed
fix: ensure l2Counterpart is nonzero (C4 M-201)
1 parent 94520f9 commit 86f99ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contracts/gateway/L1GraphTokenGateway.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ contract L1GraphTokenGateway is GraphTokenGateway, L1ArbitrumMessenger {
7272
*/
7373
modifier onlyL2Counterpart() {
7474
require(inbox != address(0), "INBOX_NOT_SET");
75+
require(l2Counterpart != address(0), "L2_COUNTERPART_NOT_SET");
7576

7677
// a message coming from the counterpart gateway was executed by the bridge
7778
IBridge bridge = IInbox(inbox).bridge();

0 commit comments

Comments
 (0)