Skip to content

Commit cb69e9c

Browse files
authored
feat: add transact cheatcode (#185)
1 parent d26946a commit cb69e9c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Vm.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ interface Vm {
211211
// In forking mode, explicitly grant the given address cheatcode access
212212
function allowCheatcodes(address) external;
213213

214+
// Fetches the given transaction from the active fork and executes it on the current state
215+
function transact(bytes32 txHash) external;
216+
// Fetches the given transaction from the given fork and executes it on the current state
217+
function transact(uint256 forkId, bytes32 txHash) external;
218+
214219
// Returns the RPC url for the given alias
215220
function rpcUrl(string calldata) external returns(string memory);
216221
// Returns all rpc urls and their aliases `[alias, url][]`

0 commit comments

Comments
 (0)