Skip to content

Commit 340fe86

Browse files
authored
feat: add getDeployedCode cheatcode (#178)
1 parent f36dab2 commit 340fe86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Vm.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ interface Vm {
9292
function expectCall(address,bytes calldata) external;
9393
// Expects a call to an address with the specified msg.value and calldata
9494
function expectCall(address,uint256,bytes calldata) external;
95-
// Gets the code from an artifact file. Takes in the relative path to the json file
95+
// Gets the _creation_ bytecode from an artifact file. Takes in the relative path to the json file
9696
function getCode(string calldata) external returns (bytes memory);
97+
// Gets the _deployed_ bytecode from an artifact file. Takes in the relative path to the json file
98+
function getDeployedCode(string calldata) external returns (bytes memory);
9799
// Labels an address in call traces
98100
function label(address, string calldata) external;
99101
// If the condition is false, discard this run's fuzz inputs and generate new ones

0 commit comments

Comments
 (0)