[Examples] Update Dynamic example#77
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Caution MetaMask internal reviewing guidelines:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "@metamask/smart-accounts-kit": "^0.2.0", | ||
| "@tanstack/react-query": "^5.90.6", | ||
| "next": "15.3.4", | ||
| "next": "15.4.8", |
There was a problem hiding this comment.
I think we should update to [email protected]. https://nextjs.org/blog/security-update-2025-12-11
| <SendUserOperationButton | ||
| to={address as Address} | ||
| value={parseEther(value)} | ||
| value={isValidValue ? parseEther(value) : 0n} |
There was a problem hiding this comment.
nit: this could be broken into a variable to avoid complicating the react component
There was a problem hiding this comment.
I have already moved the examples to https://github.com/MetaMask/smart-accounts-kit-examples
Have covered all the changes there. In Q1 first week, I'll remove examples from this repo, and rename it.
Description
Note
Migrates the Dynamic signer example to smart-accounts-kit v0.2.0 and a newer Next.js, refactoring components and app structure to the updated APIs.
examples/smart-accounts/signers/dynamic/):smart-accounts-kittov0.2.0and update Next.js.src/components/SendUserOperationButton.tsxfor the new signing/submission flow.src/components/TransactionForm.tsx,src/components/Steps.tsx, andsrc/components/Footer.tsxto the updated SDK/types.src/app/layout.tsxandsrc/app/page.tsxto align with the updated Next.js app setup.Written by Cursor Bugbot for commit 13b581a. This will update automatically on new commits. Configure here.