Skip to content

Commit d5aece4

Browse files
committed
fix(c4-117-g15): require() or revert() statements that check input arguments should be at the
top of the function Signed-off-by: Tomás Migone <[email protected]>
1 parent 71314dd commit d5aece4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/gateway/L1GraphTokenGateway.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
203203
bytes calldata _data
204204
) external payable override notPaused returns (bytes memory) {
205205
IGraphToken token = graphToken();
206-
require(_l1Token == address(token), "TOKEN_NOT_GRT");
207206
require(_amount != 0, "INVALID_ZERO_AMOUNT");
207+
require(_l1Token == address(token), "TOKEN_NOT_GRT");
208208
require(_to != address(0), "INVALID_DESTINATION");
209209

210210
// nested scopes to avoid stack too deep errors

0 commit comments

Comments
 (0)