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

Allow getting account nonce at arbitrary blocks, too #1182

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Sep 29, 2023

We have an account_nonce function on client.tx() already, which fetches the account nonce based on the latest finalized block. In some cases (eg when using manual-seal in testing which doesn't produce finalized blocks), we'd like to be able to get the acocunt nonce for other blocks. So this just exposes it on the "blocks" API for that purpose, sharing the logic.

@jsdw jsdw requested a review from a team as a code owner September 29, 2023 15:56
@jsdw jsdw merged commit e91d0c7 into master Oct 2, 2023
10 checks passed
@jsdw jsdw deleted the jsdw-account-nonce branch October 2, 2023 22:10
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.

5 participants