Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Feature request: allow incrementing nonce of unlocked accounts #589

Closed
iamdefinitelyahuman opened this issue Apr 30, 2020 · 2 comments
Closed
Milestone

Comments

@iamdefinitelyahuman
Copy link
Contributor

Expected Behavior

It should be possible to increment the nonce of an unlocked account via an RPC call.

Current Behavior

A user may wish to deploy to contract at a specific address, where that deployment address requires a very high nonce. Currently this can only be achieved by broadcasting many empty transactions in a for loop as a way to increment the nonce. This is time consuming and inefficient.

Possible Solution

Add an RPC endpoint evm_nonce that accepts two parameters: the hex address of the account to increment, and an integer value to be added to the nonce. The return value is the new nonce.

@iamdefinitelyahuman
Copy link
Contributor Author

Did I open this in the wrong repo? Should I move it to ganache-core?

@davidmurdoch
Copy link
Member

done in ganache@3.0.0-internal.6 via evm_setAccountNonce

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants