From 73798bfc81e3f3e648be421fcac5685a4b97dba0 Mon Sep 17 00:00:00 2001 From: buttonwild <33722083+buttonwild@users.noreply.github.com> Date: Tue, 11 Jun 2024 20:00:40 +0800 Subject: [PATCH 1/4] fix:#87 fix error in the content of Lecture 4 --- 04_CallContract/readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/04_CallContract/readme.md b/04_CallContract/readme.md index 4ed2c89..43f7e5f 100644 --- a/04_CallContract/readme.md +++ b/04_CallContract/readme.md @@ -153,6 +153,7 @@ export default function Web3() { const CallTest = () => { // ... ++ const { writeContract } = useWriteContract(); return (
@@ -178,7 +179,7 @@ const CallTest = () => { + ], + address: "0xEcd0D12E21805803f70de03B72B1C162dB0898d9", + functionName: "mint", -+ args: [1], ++ args: [parseEther("1")], + value: parseEther("0.01"), + }, + { From e39f9a2f0d87206480e2c14f1746aa39a394b1e6 Mon Sep 17 00:00:00 2001 From: buttonwild <33722083+buttonwild@users.noreply.github.com> Date: Wed, 12 Jun 2024 21:10:20 +0800 Subject: [PATCH 2/4] fix:#87 fix error about code in the content of Lecture 4 --- 04_CallContract/web3.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04_CallContract/web3.tsx b/04_CallContract/web3.tsx index affb101..39ea52a 100644 --- a/04_CallContract/web3.tsx +++ b/04_CallContract/web3.tsx @@ -67,7 +67,7 @@ const CallTest = () => { ], address: "0xEcd0D12E21805803f70de03B72B1C162dB0898d9", functionName: "mint", - args: [1], + args: [parseEther("1")], value: parseEther("0.01"), }, { From b53451f5b25c67b97c9339a061cc102dbc20d1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=84=9A=E6=8C=87=E5=AF=BC?= Date: Tue, 18 Jun 2024 10:04:25 +0800 Subject: [PATCH 3/4] Update 04_CallContract/readme.md --- 04_CallContract/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04_CallContract/readme.md b/04_CallContract/readme.md index 43f7e5f..19163a3 100644 --- a/04_CallContract/readme.md +++ b/04_CallContract/readme.md @@ -179,7 +179,7 @@ const CallTest = () => { + ], + address: "0xEcd0D12E21805803f70de03B72B1C162dB0898d9", + functionName: "mint", -+ args: [parseEther("1")], ++ args: [BigInt(1)], + value: parseEther("0.01"), + }, + { From 77c3f5fd8fb26aa3a5c3c32b1744c3a1b752a373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=84=9A=E6=8C=87=E5=AF=BC?= Date: Tue, 18 Jun 2024 10:05:16 +0800 Subject: [PATCH 4/4] Update 04_CallContract/web3.tsx --- 04_CallContract/web3.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04_CallContract/web3.tsx b/04_CallContract/web3.tsx index 39ea52a..d3f6c6e 100644 --- a/04_CallContract/web3.tsx +++ b/04_CallContract/web3.tsx @@ -67,7 +67,7 @@ const CallTest = () => { ], address: "0xEcd0D12E21805803f70de03B72B1C162dB0898d9", functionName: "mint", - args: [parseEther("1")], + args: [BigInt(1)], value: parseEther("0.01"), }, {