Skip to content

chore(evmrpc): return null for unknown/empty block hash#3067

Merged
mojtaba-esk merged 9 commits intomainfrom
mojtaba/evmrpc-return-null-for-unknown/empty-block-hash
Mar 18, 2026
Merged

chore(evmrpc): return null for unknown/empty block hash#3067
mojtaba-esk merged 9 commits intomainfrom
mojtaba/evmrpc-return-null-for-unknown/empty-block-hash

Conversation

@mojtaba-esk
Copy link
Contributor

Describe your changes and provide context

Fixes PLT-162

Ref: PLT-162

Testing performed to validate your change

@github-actions
Copy link

github-actions bot commented Mar 13, 2026

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMar 18, 2026, 1:34 AM

@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.60%. Comparing base (8ae411c) to head (a02c844).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3067      +/-   ##
==========================================
- Coverage   58.76%   58.60%   -0.17%     
==========================================
  Files        2090     2080      -10     
  Lines      172315   171502     -813     
==========================================
- Hits       101269   100502     -767     
- Misses      62071    62095      +24     
+ Partials     8975     8905      -70     
Flag Coverage Δ
sei-chain-pr 67.40% <100.00%> (?)
sei-db 70.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
evmrpc/block.go 77.51% <100.00%> (+0.62%) ⬆️
evmrpc/utils.go 76.38% <100.00%> (+1.85%) ⬆️

... and 77 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.

mojtaba-esk and others added 2 commits March 16, 2026 07:35
## Describe your changes and provide context

Closes PLT-163

Ref
[PLT-163](https://linear.app/seilabs/issue/PLT-163/fix-eth-getblockreceipts-not-found-behavior-parity-null-expected)

## Testing performed to validate your change

```
=== RUN   TestEVMRPCSpec/eth_getBlockReceipts/get-block-receipts-empty.iox
    rpc_io_test.go:79: [DEBUG] SEI_EVM_IO_SEED_BLOCK=""
    rpc_io_test.go:114: [DEBUG] pair 1: placeholders=[] bindings=map[]
    rpc_io_test.go:129: [DEBUG] pair 1: request {"jsonrpc":"2.0","id":1,"method":"eth_getBlockReceipts","params":["0x0000000000000000000000000000000000000000000000000000000000000000"]}
    rpc_io_test.go:144: [DEBUG] pair 1: bindings after apply: map[]
=== RUN   TestEVMRPCSpec/eth_getBlockReceipts/get-block-receipts-not-found.iox
    rpc_io_test.go:79: [DEBUG] SEI_EVM_IO_SEED_BLOCK=""
    rpc_io_test.go:114: [DEBUG] pair 1: placeholders=[] bindings=map[]
    rpc_io_test.go:129: [DEBUG] pair 1: request {"jsonrpc":"2.0","id":1,"method":"eth_getBlockReceipts","params":["0x00000000000000000000000000000000000000000000000000000000deadbeef"]}
    rpc_io_test.go:144: [DEBUG] pair 1: bindings after apply: map[]
--- PASS: TestEVMRPCSpec (0.00s)
    --- PASS: TestEVMRPCSpec/eth_getBlockReceipts/get-block-receipts-empty.iox (0.00s)
    --- PASS: TestEVMRPCSpec/eth_getBlockReceipts/get-block-receipts-not-found.iox (0.00s)
```

Co-authored-by: Mojtaba <mojtaba@celestia.org>
Copy link
Collaborator

@masih masih left a comment

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 16, 2026 11:10
@mojtaba-esk mojtaba-esk requested review from bdchatham and removed request for blindchaser March 16, 2026 16:37
@mojtaba-esk mojtaba-esk added this pull request to the merge queue Mar 17, 2026
@mojtaba-esk mojtaba-esk removed this pull request from the merge queue due to a manual request Mar 17, 2026
@mojtaba-esk mojtaba-esk enabled auto-merge March 17, 2026 17:18
@mojtaba-esk mojtaba-esk added this pull request to the merge queue Mar 17, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 17, 2026
Copy link
Contributor

@monty-sei monty-sei left a comment

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 18, 2026 01:33
@mojtaba-esk mojtaba-esk added this pull request to the merge queue Mar 18, 2026
Merged via the queue into main with commit 42245eb Mar 18, 2026
34 checks passed
@mojtaba-esk mojtaba-esk deleted the mojtaba/evmrpc-return-null-for-unknown/empty-block-hash branch March 18, 2026 02:03
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