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

与合约进行交互页面错误 #1

Open
qianfei11 opened this issue Oct 1, 2019 · 0 comments
Open

与合约进行交互页面错误 #1

qianfei11 opened this issue Oct 1, 2019 · 0 comments

Comments

@qianfei11
Copy link

与合约进行交互中,处理交易结果的代码有点错误:

truffle(develop)> let result = await contract.sendCoin(accounts[1], 10, {from: accounts[0]})
truffle(develop)> result

应该修改为:

truffle(develop)> let result = await instance.sendCoin(accounts[1], 10, {from: accounts[0]})
truffle(develop)> result
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