看文章执行到2.6没有问题,
到2.7:
配置addr参数
var addr="0x60823932b688af82c81a082f2292e95f879a0cb0"
然后进行调用即可
var adoption = web3.eth.contract(abi).at(addr) console.log("获取account[0]"+web3.eth.accounts[0]); adoption.set.sendTransaction("I'm here!!!", {from:web3.eth.accounts[0]}) var str= adoption.say(); console.log("获取成功"+str);
`
请问这是什么意思? 在哪里执行?
看文章执行到2.6没有问题,
到2.7:
配置addr参数
var addr="0x60823932b688af82c81a082f2292e95f879a0cb0"然后进行调用即可
var adoption = web3.eth.contract(abi).at(addr) console.log("获取account[0]"+web3.eth.accounts[0]); adoption.set.sendTransaction("I'm here!!!", {from:web3.eth.accounts[0]}) var str= adoption.say(); console.log("获取成功"+str);`
请问这是什么意思? 在哪里执行?