Skip to content

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

Open
mojtaba-esk wants to merge 3 commits intomainfrom
mojtaba/evmrpc-return-null-for-unknown/empty-block-hash
Open

chore(evmrpc): return null for unknown/empty block hash#3067
mojtaba-esk wants to merge 3 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 16, 2026, 6:47 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.58%. Comparing base (bb2c5b3) to head (6010d76).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3067      +/-   ##
==========================================
+ Coverage   58.41%   58.58%   +0.17%     
==========================================
  Files        2081     2080       -1     
  Lines      171790   171581     -209     
==========================================
+ Hits       100352   100525     +173     
+ Misses      62504    62140     -364     
+ Partials     8934     8916      -18     
Flag Coverage Δ
sei-chain-pr 67.33% <100.00%> (?)
sei-db 70.41% <ø> (-0.22%) ⬇️

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

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

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

2 participants