Skip to content

Commit

Permalink
fix function ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Lam committed Oct 19, 2023
1 parent d18c657 commit e699689
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,13 @@ contract ERC20BridgeTest is Test {
assertEq(address(mockERC20), newBridgeToken.nativeAsset());
}

function testZeroTeleporterRegistryAddress() public {
vm.expectRevert(
"TeleporterUpgradeable: zero teleporter registry address"
);
new ERC20Bridge(address(0));
}

function _initMockTeleporterRegistry() internal {
vm.mockCall(
MOCK_TELEPORTER_REGISTRY_ADDRESS,
Expand Down Expand Up @@ -736,13 +743,6 @@ contract ERC20BridgeTest is Test {
);
}

function testZeroTeleporterRegistryAddress() public {
vm.expectRevert(
"TeleporterUpgradeable: zero teleporter registry address"
);
new ERC20Bridge(address(0));
}

function _setUpBridgeToken(
bytes32 nativeChainID,
address nativeBridgeAddress,
Expand Down

0 comments on commit e699689

Please sign in to comment.