You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5032b92
Browse filesBrowse the repository at this point in the historyBrowse files
test(autobahn): cover new EVM-only RPC methods in the integration tests (#4547)
This PR covers the newly added EVM-only RPC methods in Autobahn's
integration test.
Currently, it only exercised six of the EVM-only RPC's methods
(eth_sendRawTransaction, eth_getTransactionReceipt, eth_getBalance,
eth_getTransactionCount, eth_chainId, eth_blockNumber). Everything added
since, from block and receipt lookups to logs, fees, storage, and
WebSocket newHeads, was covered only by unit tests against stubbed
backends, so nothing checked these methods against a real cluster or
that validators agree on what they return.
`testEVMOnlyLoad` now continues after its 4,000-transfer load.
- `assertEVMOnlyBlockQueries` takes the block holding a load transfer
and checks every block-scoped method against it on all four validators:
lookups by number, hash, and index agree with each other and with
eth_getTransactionByHash and eth_getTransactionReceipt, the block's
receipts sum to its gasUsed, eth_feeHistory reports the same block, and
all four nodes return identical blocks and receipts.
- `assertEVMOnlyContractQueries` deploys a tiny contract whose
constructor writes a storage slot and emits a log, then checks
eth_getCode, eth_getStorageAt, eth_call, eth_estimateGas, and
eth_getLogs against what the constructor did.
- `assertEVMOnlyNodeInfo` covers net_version, eth_syncing, and the fee
suggestions
- `assertEVMOnlyNewHeads` subscribes to newHeads over each node's
WebSocket port and matches the pushed head to the served block.
Assertions reuse the existing helpers and per-node client pattern.
The README's method list is rewritten to match what the EVM-only RPC
serves, with lists of methods not supported yet and not planned, a short
known-limitations section, and fixes to stale lines (the cast wallet new
jq path, pruned heights returning an error rather than null, and the
removed claim that there are no fee, log, or WebSocket methods).
Test plan
- [x] make autobahn-integration-test passes locally (all four subtests)
- [x] go vet -tags autobahn_integration ./integration_test/autobahn/...
- [x] gofmt, goimports, and golangci-lint fmt --diff clean
- [x] Contract bytecode checked in go-ethereum's EVM before use
- [x] Every README limitation checked against the code
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments