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

feat(api-evm): implement eth_estimateGas #836

Merged
merged 14 commits into from
Jan 27, 2025

Conversation

sebastijankuzner
Copy link
Contributor

@sebastijankuzner sebastijankuzner commented Jan 23, 2025

Summary

Checklist

  • Ready to be merged

@sebastijankuzner sebastijankuzner marked this pull request as ready for review January 24, 2025 15:01
Copy link
Contributor

@oXtxNt9U oXtxNt9U left a comment

Choose a reason for hiding this comment

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

We need to check the account balance prior calling process else it's possible to panic:

thread 'tokio-runtime-worker' panicked at bindings/src/lib.rs:534:33:
not yet implemented: lack of funds (fee=105000000000000 balance=0)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Since we already call getAccountInfo to get the account, we should add a check for balance to cover fee+value.

@sebastijankuzner sebastijankuzner merged commit b0ba21b into develop Jan 27, 2025
8 checks passed
@sebastijankuzner sebastijankuzner deleted the feat/api-evm/eth_estimateGas branch January 27, 2025 09:20
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