feat: deploy EVM smart account with cheapest tx in react-wagmi#209
Open
rtomas wants to merge 4 commits into
Open
feat: deploy EVM smart account with cheapest tx in react-wagmi#209rtomas wants to merge 4 commits into
rtomas wants to merge 4 commits into
Conversation
Add a SmartAccountDeployButton that lets a connected EVM smart-account user deploy their account on-chain via a 0-value self-transfer (the cheapest tx that triggers ERC-4337 deployment). Detect deployment status via bytecode and enable smart accounts by default for eip155. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Claude finished @rtomas's task in 1m 43s —— View job Code Review
Found 2 issue(s)Issue 1: Deploy button enabled while bytecode check is loadingID: smartaccountdeploybutton-button-enabled-loading-a3f1 Context:
Recommendation: <button onClick={handleDeploy} disabled={isPending || isConfirming || isCheckingDeployment}>Issue 2:
|
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.
Adds a flow to the
react/react-wagmiexample for a connected EVM smart-account user to deploy their account on-chain. A smart account (ERC-4337) is only deployed on its first transaction, so the newSmartAccountDeployButtontriggers deployment with the cheapest possible tx — a 0-value self-transfer. It detects whether the account is already deployed viauseBytecodeand shows the button only when the account type issmartAccountand not yet deployed.App.tsxnow setsdefaultAccountTypes: { eip155: 'smartAccount' }so the embedded wallet uses a smart account on EVM by default.🤖 Generated with Claude Code