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 & Update EstimateGas API #462

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

c98tristan
Copy link
Contributor

@c98tristan c98tristan commented Oct 10, 2024

  1. Fix too many arguments, want at most 1 when call eth_estimateGas
  2. Fix default gasPrice depend on balanceTokenFee
  3. Add executionResult to emphasizes the difference between Consensus error and EVM internal error.
  4. Fix race condition by copy state from stateDB each execution.
  5. Optimize time execution estimate gas.
  6. Get balanceTokenFee from stateDB instead of default value
  7. Remove gasLimit and gasPrice when using contract call
  8. Remove logic set gasPrice when balanceTokenFee exist.
  9. Unit testing

Reference:

Copy link

@beage666 beage666 left a comment

Choose a reason for hiding this comment

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

Ok

@c98tristan c98tristan marked this pull request as ready for review October 23, 2024 10:38
@imterryyy
Copy link
Collaborator

Does this change require protocol update ?

@beage666
Copy link

Yes

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.

3 participants