Repository navigation
fix(actions): resolve nested actions through getAction - #5495
Merged
Merged
Conversation
deployContract, getDelegation, sendCalls, and signAuthorization now resolve the action they call through getAction, so overrides of that action on the client are used. Co-authored-by: Morteza Shojaei <[email protected]> Amp-Thread-ID: https://ampcode.com/threads/T-01a1cc30-b235-7259-94bc-81a08c8ea515 Co-authored-by: jxom <[email protected]>
🦋 Changeset detectedLatest commit: d6b5d6e 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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review Summary: ✅ CompletedThis 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. |
Contributor
|
Published pnpm add viem@pr-5495
pnpm add [email protected] |
jxom
enabled auto-merge (squash)
November 12, 2026 04:00
jxom
disabled auto-merge
November 12, 2026 04:50
This was referenced Nov 12, 2026
Merged
This branch had an error being 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.
Replaces #5491 by @mortezashojaei, who is credited as co-author.
deployContract,getDelegation,sendCalls(in theeth_sendTransactionfallback), andsignAuthorizationcalled the action they depend on directly. As a result, overriding that action on the client had no effect. They now resolve it throughgetAction, the same waywriteContract,readContract, andsendCallsSyncalready do.Changes from #5491:
getLogs→iterateLogschange. With it, an override ofgetLogswas no longer applied to each page of ablockRangequery, andgetLogsanditerateLogswould each resolve the other through the client.getDelegationwith a clientgetCodeoverride). It fails onmainand passes with this change.Note: the action found by
getActionis the one attached to the client beforeextend. So overrides of actions further down the chain (for exampleprepareTransactionRequestunderdeployContract, orgetTransactionCountundersignAuthorization) are no longer used by these four actions.writeContractalready behaves this way.