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

Problem: not allowed specify nonce when estimate gas #512

Closed
wants to merge 1 commit into from

Conversation

mmsqe
Copy link
Collaborator

@mmsqe mmsqe commented Aug 9, 2024

Closes: #XXX

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)

if args.Nonce == nil {
// ApplyMessageWithConfig expect correct nonce set in msg if not specify in request
nonce := k.GetNonce(ctx, args.GetFrom())
args.Nonce = (*hexutil.Uint64)(&nonce)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

hermes bump up nonce when call estimate

Copy link
Collaborator

@yihuang yihuang Aug 9, 2024

Choose a reason for hiding this comment

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

isn't the nonce returned by k.GetNonce is most correct?

Copy link
Collaborator Author

@mmsqe mmsqe Aug 9, 2024

Choose a reason for hiding this comment

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

nonce could be the same from k.GetNonce when estimate batches, 2nd batch call before 1st batch finalize.

Copy link
Collaborator

Choose a reason for hiding this comment

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

is it possible to describe the test case in integration test outside of the ibc context, still confused what are you trying to do.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

just make it easier for me to compare between client and server, otherwise I need compare with data field ;D

@mmsqe mmsqe requested a review from yihuang August 9, 2024 01:43
Copy link

codecov bot commented Aug 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.55%. Comparing base (7ef8af1) to head (46ad27e).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #512   +/-   ##
========================================
  Coverage    61.54%   61.55%           
========================================
  Files          128      128           
  Lines         9503     9504    +1     
========================================
+ Hits          5849     5850    +1     
  Misses        3113     3113           
  Partials       541      541           
Files Coverage Δ
x/evm/keeper/grpc_query.go 78.60% <100.00%> (+0.05%) ⬆️

@mmsqe mmsqe closed this Aug 9, 2024
@mmsqe mmsqe deleted the specify_nonce branch August 13, 2024 08:21
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