Repository navigation
refactor(tx-submitter): drop GetBlockTraceByNumber from L2Client - #1077
tomatoishealthy wants to merge 1 commit into
Conversation
The method has no callers in tx-submitter, and the underlying morph_getBlockTraceByNumberOrHash RPC is being removed from geth along with the matching ethclient helper. Dropping it from the interface keeps *ethclient.Client satisfying L2Client once the geth dependency is bumped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Claude Code Review
Claude Code Review is paused for this repository because its GitHub organization is not linked to your Claude organization.
To turn it back on, one person needs both roles: owner of the GitHub organization (or the account owner, for a personal repository) and admin or owner of your Claude organization. If that is not you, pass this on to someone who is.
Open Organization settings, Git providers and click Link next to the GitHub organization's name. If it is not listed, click Enable GitHub integration or Connect your GitHub first, whichever the page shows.
New pull requests are then reviewed as before. To get a review on one that is already open, someone with write access can comment @claude review.
Tip: disable this comment in your organization's Code Review settings.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Summary
Drop
GetBlockTraceByNumberfrom tx-submitter'sL2Clientinterface, together with itsL2Clientsfan-out implementation and the mock.The method has no callers in tx-submitter, and the underlying
morph_getBlockTraceByNumberOrHashRPC is being removed from go-ethereum along with the matchingethclienthelper (companion PR: morph-l2/go-ethereum#388). Without this change,*ethclient.Clientwould stop satisfyingL2Clientas soon as the geth dependency is bumped, andtx-submitter/entry.gowould fail to compile.No behavior change.
Merge order
This PR should land before (or together with) the go-ethereum dependency bump that includes the companion PR. It is safe to merge on its own against the current geth version.
Testing
go build ./...,go vet ./...,go test ./...intx-submitter: all passethclientmethods removed: pass (before this change it fails with*ethclient.Client does not implement iface.L2Client (missing method GetBlockTraceByNumber))🤖 Generated with Claude Code
Summary by CodeRabbit