Repository navigation
fix(wallet): apply sendCalls dataSuffix when a call has no data - #5301
Merged
Merged
Conversation
Adds a fallback test for a value-only call with a `dataSuffix`, and documents that a call without `data` is sent with the suffix as its data. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HZvmnnr4n6swjYTWpmKcpP
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: bc14a02 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 |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
Merged
This was referenced Oct 26, 2026
This branch was successfully deployed
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.
Supersedes #5292 and keeps @mortezashojaei's original commit.
sendCallsonly appended a call'sdataSuffixwhen the call already haddata. A call withoutdata, such as a plain value transfer, lost its suffix on both thewallet_sendCallsrequest and theeth_sendTransactionfallback. A call withdata: '0x'already got the suffix, so the behavior wasn't consistent. This is the same problem #4401 fixed forsendTransaction(#4343).The fix appends the suffix to
data ?? '0x', which matchessendTransaction,sendTransactionSyncandsimulateBlocks. Calls that already havedataare unchanged. A client-leveldataSuffixis still only sent as thedataSuffixcapability onwallet_sendCalls.Because the suffix is set per call, appending calldata to a value transfer is opt-in. Note that such a transfer to a contract with
receive()but nofallback()will revert.Changes:
src/actions/wallet/sendCalls.ts: apply the suffix whendatais missing.args: dataSuffix (no data)for thewallet_sendCallsrequest, andbehavior: dataSuffix (no data)for theeth_sendTransactionfallback, which reads back the mined transaction's input.calls.dataSuffixsays a call withoutdatais sent with the suffix as its data.Out of scope, pre-existing: on the fallback, a per-call
dataSuffixandclient.dataSuffixboth get appended (0x12345678cafe), although the action-level suffix is documented to take precedence.Generated by Claude Code