Repository navigation
fix(celo): map cip64 and deposit transaction types in blocks - #5546
Merged
Merged
Conversation
The Celo block formatter ran plain formatTransaction and only added gatewayFee/feeCurrency, so getBlock with includeTransactions returned CIP-64 and deposit transactions with `type` undefined and deposit `mint` as a hex string, while getTransaction mapped them. Mirror the transaction formatter for 0x7e/0x7b/0x7c, like the OP Stack and zkSync block formatters do. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@gomesalexandre is attempting to deploy a commit to the Wevm Team on Vercel. A member of the Team first needs to authorize it. |
🦋 Changeset detectedLatest commit: 3cbc2e7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This was referenced Nov 16, 2026
Merged
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Celo,
getBlock({ includeTransactions: true })returns CIP-64 and deposit transactions withtype: undefined, and deposits keepmintas a raw hex string.getTransactionon the same hash givestype: 'cip64'/type: 'deposit'andmint: 0n, so the two paths disagree on the same tx.CeloBlockalready types its transactions asCeloTransaction(which includes the CIP-64 and deposit variants), so the runtime value didn't match the declared type.The Celo block formatter runs plain
formatTransaction(its type table stops at0x4) and only addsgatewayFee/feeCurrency, so the Celo type mapping in thetransactionformatter never runs for block transactions. The OP Stack and zkSync block formatters already map their own types inline. This one now does the same:0x7egetsisSystemTx,mint,sourceHashandtype: 'deposit'(and no fee currency keys, same asgetTransaction),0x7bgetscip64,0x7cgetscip42. Output for0x0-0x4transactions is unchanged.Live
getBlockon Celo mainnet (block 82961459 via celo-rpc.publicnode.com,includeTransactions: true),typeHex -> typecounts:The new test in
src/celo/formatters.test.tsuses a real deposit and a real CIP-64 tx from Celo block 82961459 and fails on main (type: undefinedtwice,mint: "0x0"). One thing to flag:src/celo/**is excluded from thecorevitest project and no other project picks it up, so I ran the file with a scratch config.🤖 Generated with Claude Code