Skip to content
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

fix:#87 fix error in the content of Lecture 4 #88

Merged
merged 4 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion 04_CallContract/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export default function Web3() {
const CallTest = () => {

// ...
+ const { writeContract } = useWriteContract();

return (
<div>
Expand All @@ -178,7 +179,7 @@ const CallTest = () => {
+ ],
+ address: "0xEcd0D12E21805803f70de03B72B1C162dB0898d9",
+ functionName: "mint",
+ args: [1],
+ args: [parseEther("1")],
yutingzhao1991 marked this conversation as resolved.
Show resolved Hide resolved
yutingzhao1991 marked this conversation as resolved.
Show resolved Hide resolved
+ value: parseEther("0.01"),
+ },
+ {
Expand Down
2 changes: 1 addition & 1 deletion 04_CallContract/web3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const CallTest = () => {
],
address: "0xEcd0D12E21805803f70de03B72B1C162dB0898d9",
functionName: "mint",
args: [1],
args: [parseEther("1")],
yutingzhao1991 marked this conversation as resolved.
Show resolved Hide resolved
value: parseEther("0.01"),
},
{
Expand Down