Skip to content

fix: eth_call with eip-1559 call#3111

Merged
mojtaba-esk merged 4 commits into
mainfrom
mojtaba/fix-eth-call-with-eip-1559-call-env-parameter-compatibility
Mar 25, 2026
Merged

fix: eth_call with eip-1559 call#3111
mojtaba-esk merged 4 commits into
mainfrom
mojtaba/fix-eth-call-with-eip-1559-call-env-parameter-compatibility

Conversation

@mojtaba-esk

Copy link
Copy Markdown
Contributor

Describe your changes and provide context

EIP-1559-style eth_call / eth_createAccessList fixtures failed because Geth-style fee rules differ by path: tiny non-zero caps hit fee cap < base fee, large caps hit insufficient funds for from=0x0, and createAccessList rejects zero maxFeePerGas when both 1559 fields are set.

This PR proposes an update to call-callenv-options-eip1559.iox to use maxFeePerGas / maxPriorityFeePerGas = 0x0 with from=0x0 ( eth_call / CallDefaults + NoBaseFee ). Also an update create-al-contract-eip1559.iox to bind from from the deploy receipt and use non-zero caps so setFeeDefaults and BuyGas succeed.
It is also documented the split in fixture comments and refreshed RPC_IO_README.md / FAILED_TEST_ANALYSIS.md (incl. eth_call fix summary column, 147/12/92.5%).

Fixes PLT-165

Testing performed to validate your change

@github-actions

github-actions Bot commented Mar 24, 2026

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMar 25, 2026, 7:30 AM

mojtaba-esk and others added 2 commits March 24, 2026 20:37
…3112)

## Describe your changes and provide context

Fixes PLT-166

## Testing performed to validate your change

Co-authored-by: Mojtaba <mojtaba@celestia.org>
@@ -1,3 +1,4 @@
// Ethereum spec: eth_getLogs must return error (-32602) when block range extends beyond current head. Test fails if Sei returns result (e.g. []).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is merged from this PR

@codecov

codecov Bot commented Mar 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.57%. Comparing base (7a2299f) to head (88af386).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3111      +/-   ##
==========================================
- Coverage   58.60%   58.57%   -0.03%     
==========================================
  Files        2099     2098       -1     
  Lines      173514   173174     -340     
==========================================
- Hits       101682   101445     -237     
+ Misses      62776    62693      -83     
+ Partials     9056     9036      -20     
Flag Coverage Δ
sei-db 70.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 33 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

<< {"jsonrpc":"2.0","id":1,"result":{}}
@ bind contractAddress = result.contractAddress
>> {"jsonrpc":"2.0","id":1,"method":"eth_call","params":[{"from":"0x0000000000000000000000000000000000000000","gas":"0xea60","input":"0x","maxFeePerGas":"0x5763d65","maxPriorityFeePerGas":"0xb","to":"${contractAddress}","value":"0x0"},"__SEED__"]}
>> {"jsonrpc":"2.0","id":1,"method":"eth_call","params":[{"from":"0x0000000000000000000000000000000000000000","gas":"0xea60","input":"0x","maxFeePerGas":"0x0","maxPriorityFeePerGas":"0x0","to":"${contractAddress}","value":"0x0"},"__SEED__"]}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I was wondering does >> indicate input and << indicates expected output?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@amir-deris that's right. There is a parser for this in the package

@monty-sei monty-sei left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@mojtaba-esk mojtaba-esk enabled auto-merge March 25, 2026 07:30
@mojtaba-esk mojtaba-esk added this pull request to the merge queue Mar 25, 2026
Merged via the queue into main with commit 9abe71e Mar 25, 2026
38 of 39 checks passed
@mojtaba-esk mojtaba-esk deleted the mojtaba/fix-eth-call-with-eip-1559-call-env-parameter-compatibility branch March 25, 2026 08:06
jewei1997 pushed a commit that referenced this pull request Mar 30, 2026
## Describe your changes and provide context

EIP-1559-style `eth_call / eth_createAccessList` fixtures failed because
Geth-style fee rules differ by path: tiny non-zero caps hit `fee cap <
base fee`, large caps hit insufficient funds for `from=0x0`, and
`createAccessList` rejects zero maxFeePerGas when both 1559 fields are
set.

This PR proposes an update to `call-callenv-options-eip1559.iox` to use
maxFeePerGas / maxPriorityFeePerGas = 0x0 with from=0x0 ( eth_call /
CallDefaults + NoBaseFee ). Also an update
`create-al-contract-eip1559.iox` to bind from from the deploy receipt
and use non-zero caps so `setFeeDefaults` and `BuyGas` succeed.
It is also documented the split in fixture comments and refreshed
[RPC_IO_README.md](https://github.com/sei-protocol/sei-chain/blob/5e967f4d1432e3f8b5e02d6dabb33611811b1211/integration_test/evm_module/rpc_io_test/RPC_IO_README.md)
/
[FAILED_TEST_ANALYSIS.md](https://github.com/sei-protocol/sei-chain/blob/5e967f4d1432e3f8b5e02d6dabb33611811b1211/integration_test/evm_module/rpc_io_test/FAILED_TEST_ANALYSIS.md)
(incl. eth_call fix summary column, 147/12/92.5%).

Fixes PLT-165

## Testing performed to validate your change

---------

Co-authored-by: Mojtaba <mojtaba@celestia.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants