From c89c5fd14b9f69275e9e36505b42e8e660166629 Mon Sep 17 00:00:00 2001 From: Maurelian Date: Mon, 25 Nov 2024 16:54:21 -0500 Subject: [PATCH] feat: remove unused onlyTestnetOrDevnet modifier --- .../contracts-bedrock/scripts/deploy/Deploy.s.sol | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/packages/contracts-bedrock/scripts/deploy/Deploy.s.sol b/packages/contracts-bedrock/scripts/deploy/Deploy.s.sol index 2135b69aaf25..9e688f29ae6d 100644 --- a/packages/contracts-bedrock/scripts/deploy/Deploy.s.sol +++ b/packages/contracts-bedrock/scripts/deploy/Deploy.s.sol @@ -97,18 +97,6 @@ contract Deploy is Deployer { } } - /// @notice Modifier that will only allow a function to be called on a public - /// testnet or devnet. - modifier onlyTestnetOrDevnet() { - uint256 chainid = block.chainid; - if ( - chainid == Chains.Goerli || chainid == Chains.Sepolia || chainid == Chains.LocalDevnet - || chainid == Chains.GethDevnet - ) { - _; - } - } - /// @notice Modifier that wraps a function with statediff recording. /// The returned AccountAccess[] array is then written to /// the `snapshots/state-diff/.json` output file.