Skip to content

Commit

Permalink
feat: add start/stopPrank to IHEVM (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
nican0r authored Nov 7, 2024
1 parent dc8192c commit 394af84
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Hevm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ interface IHevm {
// Performs the next smart contract call with specified `msg.sender`
function prank(address newSender) external;

// Sets msg.sender to the specified sender until stopPrank() is called
// NOTE: not currently supported by Medusa
function startPrank(address sender) external;

// Resets msg.sender to the default sender
function stopPrank() external;

// Creates a new fork with the given endpoint and the latest block and returns the identifier of the fork
function createFork(string calldata urlOrAlias) external returns (uint256);

Expand Down

0 comments on commit 394af84

Please sign in to comment.