Skip to content

Commit

Permalink
Merge pull request #88 from buttonwild/main
Browse files Browse the repository at this point in the history
fix:#87 fix error in the content of Lecture 4
  • Loading branch information
yutingzhao1991 authored Jun 18, 2024
2 parents 40a237c + 77c3f5f commit 0cc8d23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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: [BigInt(1)],
+ 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: [BigInt(1)],
value: parseEther("0.01"),
},
{
Expand Down

0 comments on commit 0cc8d23

Please sign in to comment.