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

11_StaticCall 部分代码有误 #105

Open
gstarkg opened this issue Sep 16, 2023 · 0 comments
Open

11_StaticCall 部分代码有误 #105

gstarkg opened this issue Sep 16, 2023 · 0 comments

Comments

@gstarkg
Copy link

gstarkg commented Sep 16, 2023

// 3. 用staticCall尝试调用transfer转账10000 DAI,msg.sender为测试钱包地址,交易将失败
console.log("\n3. 用staticCall尝试调用transfer转账1 DAI,msg.sender为测试钱包地址")
const tx2 = await contractDAI.transfer.staticCall("vitalik.eth", ethers.parseEther("10000"), {from: address})
console.log(交易会成功吗?:, tx)

console.log中的tx应该为tx2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant