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

Get right nonce when there are pending transactions #86

Merged
merged 18 commits into from
Oct 27, 2021

Conversation

germartinez
Copy link
Member

What it solves

Resolves #75

How this PR fixes it

The new method getNextNonce(safeAddress) was added to the safe-service-client package.
If the given Safe has pending transactions it will return the nonce of the last pending transaction + 1.
If the given Safe has no pending transactions it will return the Safe nonce.

The returned nonce can be used to create a new SafeTransaction before proposing it.

@github-actions
Copy link

CLA Assistant Lite All Contributors have signed the CLA.

@germartinez germartinez linked an issue Oct 11, 2021 that may be closed by this pull request
Copy link
Member

@iamacook iamacook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just a couple of questions.

Copy link
Member

@iamacook iamacook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@germartinez germartinez merged commit bf1d23c into development Oct 27, 2021
@germartinez germartinez deleted the get-last-nonce branch October 27, 2021 08:18
@github-actions github-actions bot locked and limited conversation to collaborators Oct 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increase nonce when proposing a new transaction
2 participants