From 3995e7f199feed32998d7f75df383d3cdfb755f4 Mon Sep 17 00:00:00 2001 From: Diego <105765223+0xfuturistic@users.noreply.github.com> Date: Tue, 2 Jan 2024 11:47:52 +0100 Subject: [PATCH] contracts-bedrock: reorder isProxy in ChainAssertions for OptimismMintableERC20Factory --- packages/contracts-bedrock/scripts/ChainAssertions.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/contracts-bedrock/scripts/ChainAssertions.sol b/packages/contracts-bedrock/scripts/ChainAssertions.sol index c06435ff21411..e9aab4c22a8fd 100644 --- a/packages/contracts-bedrock/scripts/ChainAssertions.sol +++ b/packages/contracts-bedrock/scripts/ChainAssertions.sol @@ -144,12 +144,12 @@ library ChainAssertions { console.log("Running chain assertions on the OptimismMintableERC20Factory"); OptimismMintableERC20Factory factory = OptimismMintableERC20Factory(_contracts.OptimismMintableERC20Factory); - if (!_isProxy) { - require(factory.BRIDGE() == address(0)); - require(factory.bridge() == address(0)); - } else { + if (_isProxy) { require(factory.BRIDGE() == _contracts.L1StandardBridge); require(factory.bridge() == _contracts.L1StandardBridge); + } else { + require(factory.BRIDGE() == address(0)); + require(factory.bridge() == address(0)); } }