Skip to content

Commit

Permalink
contracts-bedrock: fix invariant flakes (ethereum-optimism#9090)
Browse files Browse the repository at this point in the history
Replaces ethereum-optimism#9089

We do not want to call the `FFIInterface` or other test contracts as part of the
invariant tests because it will create malformed inputs and cause
unrelated invariant tests to fail.
  • Loading branch information
tynes authored Jan 19, 2024
1 parent 61ac9ad commit f09b898
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/contracts-bedrock/test/setup/CommonTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ contract CommonTest is Test, Setup, Events {
vm.etch(address(ffi), vm.getDeployedCode("FFIInterface.sol:FFIInterface"));
vm.label(address(ffi), "FFIInterface");

// Exclude contracts for the invariant tests
excludeContract(address(ffi));
excludeContract(address(deploy));
excludeContract(address(deploy.cfg()));

// Make sure the base fee is non zero
vm.fee(1 gwei);

Expand Down

0 comments on commit f09b898

Please sign in to comment.