Skip to content

Commit

Permalink
Feat: add etch
Browse files Browse the repository at this point in the history
Tested locally.
  • Loading branch information
lokithe5th committed Apr 17, 2024
1 parent 1f54cda commit ee7f379
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Hevm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ interface IHevm {

// Labels the address in traces
function label(address addr, string calldata label) external;

/// Sets an address' code.
function etch(address target, bytes calldata newRuntimeBytecode) external;
}

IHevm constant vm = IHevm(0x7109709ECfa91a80626fF3989D68f67F5b1DD12D);
Expand Down

0 comments on commit ee7f379

Please sign in to comment.