Skip to content

Commit

Permalink
Don't use constant variable for cheats address to support older Solid…
Browse files Browse the repository at this point in the history
…ity versions (#53)
  • Loading branch information
rappie authored Aug 13, 2024
1 parent a022532 commit 3956918
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/IHevm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ interface IHevm {
function label(address addr, string calldata label) external;
}

IHevm constant vm = IHevm(Constants.ADDRESS_CHEATS);
// Don't use Constants.ADDRESS_CHEATS to support older Solidity versions
IHevm constant vm = IHevm(0x7109709ECfa91a80626fF3989D68f67F5b1DD12D);
3 changes: 2 additions & 1 deletion src/IStdCheats.sol
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ interface IStdCheats {
function parseBool(string memory) external returns(bool);
}

IStdCheats constant vm = IStdCheats(Constants.ADDRESS_CHEATS);
// Don't use Constants.ADDRESS_CHEATS to support older Solidity versions
IStdCheats constant vm = IStdCheats(0x7109709ECfa91a80626fF3989D68f67F5b1DD12D);

0 comments on commit 3956918

Please sign in to comment.