Skip to content

Add SDK EIP-7702 tutorial #2227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 22, 2025
Merged

Add SDK EIP-7702 tutorial #2227

merged 7 commits into from
Aug 22, 2025

Conversation

alexandratran
Copy link
Contributor

@alexandratran alexandratran commented Aug 12, 2025

Description

Add SDK tutorial for creating a Wagmi and Next.js dapp to send atomic batch transactions, upgrade your EOA to a smart account, and check transaction status.

Issue(s) fixed

Fixes #2198

Checklist

Complete this checklist before merging your PR:

  • If this PR contains a major change to the documentation content, I have added an entry to the top of the "What's new?" page.
  • The proposed changes have been reviewed and approved by a member of the documentation team.

@alexandratran alexandratran requested review from a team as code owners August 12, 2025 20:50
Copy link

vercel bot commented Aug 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
metamask-docs Ready Ready Preview Comment Aug 22, 2025 2:57am

shahbaz17
shahbaz17 previously approved these changes Aug 21, 2025
Copy link
Member

@shahbaz17 shahbaz17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

bgravenorst
bgravenorst previously approved these changes Aug 22, 2025
Copy link
Contributor

@bgravenorst bgravenorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions added

bgravenorst
bgravenorst previously approved these changes Aug 22, 2025
Copy link
Contributor

@bgravenorst bgravenorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

# Conflicts:
#	delegation-toolkit/get-started/smart-account-quickstart/eip7702.md
Copy link
Contributor

@bgravenorst bgravenorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

import { parseEther } from "viem";
// add-start
+ import { getCallsStatus } from "@wagmi/core";
+ import { wagmiConfig as config } from "@/providers/AppProvider";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Missing wagmiConfig Export Causes Compilation Error

The tutorial imports wagmiConfig in Step 5 for getCallsStatus, but the AppProvider.tsx section in Step 2 only shows exporting connectors. It doesn't include instructions to define and export wagmiConfig, which will cause a compilation error when users try to use getCallsStatus.

Fix in Cursor Fix in Web

@alexandratran alexandratran merged commit b061240 into main Aug 22, 2025
19 checks passed
@alexandratran alexandratran deleted the 2198-sdk-7702-tutorial branch August 22, 2025 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add SDK EIP-7702 tutorial
4 participants