- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
🐛 Fix: eth_estimateGas (#1430)
## Description 1. Typescript type for estimateGas json request wrong 2. State overrides and block tag handled wrong ## Testing Explain the quality checks that have been done on the code changes ## Additional Information - [ ] I read the [contributing docs](../docs/contributing.md) (if this is your first contribution) Your ENS/address: <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced gas estimation accuracy for Ethereum transactions by fixing a bug related to the `eth_estimateGas` method. - Introduced optional parameters for gas estimation requests, allowing for greater flexibility in specifying block tags and state overrides. - **Bug Fixes** - Resolved issues with handling block tags and state overrides in gas estimation. - **Tests** - Added new test cases to improve coverage for gas estimation functionality, including scenarios for handling block tags and specific contract interactions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: William Cory <[email protected]>
- Loading branch information
1 parent
a308502
commit 5942568
Showing
6 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@tevm/procedures": patch | ||
--- | ||
|
||
Fixed bug with eth_estimateGas json-rpc not handling block tag and state overrides correctly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters