From 7813bdb935c190e6c6bd35e001a7594b76d1d971 Mon Sep 17 00:00:00 2001 From: zkbenny Date: Fri, 22 Mar 2024 14:54:44 +0800 Subject: [PATCH] fix: abdk-cvf-7 --- contracts/Arbitrator.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/Arbitrator.sol b/contracts/Arbitrator.sol index 7465a12..862e898 100644 --- a/contracts/Arbitrator.sol +++ b/contracts/Arbitrator.sol @@ -81,7 +81,7 @@ contract Arbitrator is IArbitrator, OwnableUpgradeable, UUPSUpgradeable, Reentra /// @dev Set primary chain function setPrimaryChainGateway(IL1Gateway _gateway) external onlyOwner { require(address(primaryChainGateway) == address(0), "Duplicate init gateway"); - require(address(primaryChainGateway) != address(0), "Invalid gateway"); + require(address(_gateway) != address(0), "Invalid gateway"); primaryChainGateway = _gateway; emit InitPrimaryChain(_gateway); }