Skip to content

Commit

Permalink
chore: add getNonce, setNonce to Vm
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroEkkusu authored Apr 21, 2022
1 parent ced2ef1 commit b6710a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Vm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ interface Vm {
function sign(uint256,bytes32) external returns (uint8,bytes32,bytes32);
// Gets address for a given private key, (privateKey) => (address)
function addr(uint256) external returns (address);
// Gets the nonce of an account
function getNonce(address) external returns (uint64);
// Sets the nonce of an account; must be higher than the current nonce of the account
function setNonce(address, uint64) external;
// Performs a foreign function call via terminal, (stringInputs) => (result)
function ffi(string[] calldata) external returns (bytes memory);
// Sets the *next* call's msg.sender to be the input address
Expand Down

0 comments on commit b6710a7

Please sign in to comment.