-
-
Notifications
You must be signed in to change notification settings - Fork 3
[Examples] Update Dynamic example #77
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
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| "use client"; | ||
|
|
||
| import Steps from "@/components/Steps"; | ||
| import Footer from "@/components/Footer"; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| "use client"; | ||
|
|
||
| import { useState, useMemo } from "react"; | ||
| import { parseEther, isAddress, Address } from "viem"; | ||
| import SendUserOperationButton from "@/components/SendUserOperationButton"; | ||
|
|
@@ -62,7 +64,7 @@ export default function TransactionForm() { | |
| <div className="mt-8"> | ||
| <SendUserOperationButton | ||
| to={address as Address} | ||
| value={parseEther(value)} | ||
| value={isValidValue ? parseEther(value) : 0n} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: this could be broken into a variable to avoid complicating the react component
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 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. |
||
| isEnabled={isFormValid} | ||
| /> | ||
| </div> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.