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

WIP: Increment nonce to #468

Closed
wants to merge 2 commits into from
Closed

Conversation

matnad
Copy link
Collaborator

@matnad matnad commented May 1, 2020

What I did

WIP!
Added a method for unlocked accounts to silently increase their nonce to a higher value.

Related issue: #467

How I did it

Added the silent parameter to transactions. Created a method that will loop empty transactions until the new nonce is met.

How to verify it

Call increase_nonce_to(int) on an unlocked account.
No tests yet, discussion first.

Checklist

  • I have confirmed that my PR passes all linting checks
  • I have included test cases
  • I have updated the documentation
  • I have added an entry to the changelog

matnad added 2 commits May 1, 2020 02:48
- silent (no tx console output)
- for now simply creates empty transactions to increment nonce
- throws ValueError if target nonce is below current nonce
# Conflicts:
#	brownie/network/account.py
@matnad
Copy link
Collaborator Author

matnad commented May 2, 2020

closed in favour of #472

@matnad matnad closed this May 2, 2020
@matnad matnad deleted the increment-nonce-to branch December 28, 2020 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant