Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: getNonce and setNonce cheatcodes #554

Closed
mds1 opened this issue Jan 23, 2022 · 0 comments · Fixed by #1139
Closed

feat: getNonce and setNonce cheatcodes #554

mds1 opened this issue Jan 23, 2022 · 0 comments · Fixed by #1139
Assignees
Labels
A-cheatcodes Area: cheatcodes C-forge Command: forge D-easy Difficulty: easy T-feature Type: feature

Comments

@mds1
Copy link
Collaborator

mds1 commented Jan 23, 2022

interface Vm {
  // Gets the nonce required for the next transaction
  function getNonce(address) external;
  // Sets the next required nonce, where new nonce must be > current nonce
  function setNonce(address,uint256) external;
}

Use cases:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cheatcodes Area: cheatcodes C-forge Command: forge D-easy Difficulty: easy T-feature Type: feature
Projects
None yet
3 participants