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

fix(rpc): align query result of future block for eth_getTransactionCount (backport: #1638) #225

Conversation

mmsqe
Copy link
Collaborator

@mmsqe mmsqe commented Mar 14, 2023

for more info: evmos#1638

Description


For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

…unt (evmos#1638)

* add future height check for get_transaction_count

* add query future account test

* fasten get_transaction_count test

* add change doc

* fix test

* update nix

* Update CHANGELOG.md

Co-authored-by: MalteHerrmann <[email protected]>

* Update rpc/backend/account_info.go

Co-authored-by: MalteHerrmann <[email protected]>

* update nix

* add test for block height in future

Co-authored-by: MalteHerrmann <[email protected]>
Co-authored-by: MalteHerrmann <[email protected]>
@mmsqe mmsqe requested a review from yihuang March 14, 2023 05:43
return &n, err
}
height := blockNum.Int64()
currentHeight := int64(bn)

Check failure

Code scanning / gosec

Potential integer overflow by integer type conversion

Potential integer overflow by integer type conversion
@codecov
Copy link

codecov bot commented Mar 14, 2023

Codecov Report

Merging #225 (ebe08c7) into release/v0.20.x-cronos (58a3ffe) will increase coverage by 0.02%.
The diff coverage is 75.00%.

Impacted file tree graph

@@                    Coverage Diff                     @@
##           release/v0.20.x-cronos     #225      +/-   ##
==========================================================
+ Coverage                   57.33%   57.35%   +0.02%     
==========================================================
  Files                         108      108              
  Lines                       10109    10121      +12     
==========================================================
+ Hits                         5796     5805       +9     
- Misses                       4067     4069       +2     
- Partials                      246      247       +1     
Impacted Files Coverage Δ
rpc/backend/account_info.go 76.66% <75.00%> (-0.15%) ⬇️

@mmsqe mmsqe merged commit 00f44a3 into crypto-org-chain:release/v0.20.x-cronos Mar 14, 2023
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.

2 participants