From e699689d21b341131b57a2fed91baf4edd482deb Mon Sep 17 00:00:00 2001 From: Matthew Lam Date: Thu, 19 Oct 2023 22:32:31 +0000 Subject: [PATCH] fix function ordering --- .../ERC20Bridge/tests/ERC20BridgeTests.t.sol | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/contracts/src/CrossChainApplications/ERC20Bridge/tests/ERC20BridgeTests.t.sol b/contracts/src/CrossChainApplications/ERC20Bridge/tests/ERC20BridgeTests.t.sol index a6d093134..97b122fca 100644 --- a/contracts/src/CrossChainApplications/ERC20Bridge/tests/ERC20BridgeTests.t.sol +++ b/contracts/src/CrossChainApplications/ERC20Bridge/tests/ERC20BridgeTests.t.sol @@ -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, @@ -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,