Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjimmutable committed Oct 25, 2023
1 parent 2eaf469 commit 23df4cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
3 changes: 1 addition & 2 deletions src/root/RootERC20Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ contract RootERC20Bridge is
) public initializer {
if (
newRootBridgeAdaptor == address(0) || newChildERC20Bridge == address(0)
|| newChildTokenTemplate == address(0)
|| newRootIMXToken == address(0)
|| newChildTokenTemplate == address(0) || newRootIMXToken == address(0)
) {
revert ZeroAddress();
}
Expand Down
12 changes: 2 additions & 10 deletions test/unit/root/RootERC20Bridge.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ contract RootERC20BridgeUnitTest is Test, IRootERC20BridgeEvents, IRootERC20Brid

// The specific ERC20 token template does not matter for these unit tests
rootBridge.initialize(
address(mockAxelarAdaptor),
CHILD_BRIDGE,
CHILD_BRIDGE_ADAPTOR_STRING,
address(token),
IMX_TOKEN
address(mockAxelarAdaptor), CHILD_BRIDGE, CHILD_BRIDGE_ADAPTOR_STRING, address(token), IMX_TOKEN
);
}

Expand All @@ -65,11 +61,7 @@ contract RootERC20BridgeUnitTest is Test, IRootERC20BridgeEvents, IRootERC20Brid
function test_RevertIfInitializeTwice() public {
vm.expectRevert("Initializable: contract is already initialized");
rootBridge.initialize(
address(mockAxelarAdaptor),
CHILD_BRIDGE,
CHILD_BRIDGE_ADAPTOR_STRING,
address(token),
IMX_TOKEN
address(mockAxelarAdaptor), CHILD_BRIDGE, CHILD_BRIDGE_ADAPTOR_STRING, address(token), IMX_TOKEN
);
}

Expand Down

0 comments on commit 23df4cb

Please sign in to comment.