Skip to content

Commit

Permalink
feat: remove unused onlyTestnetOrDevnet modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
maurelian committed Nov 25, 2024
1 parent 2c39898 commit 710e7fa
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/contracts-bedrock/scripts/deploy/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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/<name>.json` output file.
Expand Down

0 comments on commit 710e7fa

Please sign in to comment.