当我尝试进入以太坊编程时,我目前正在关注本教程(https://medium.com/zeppelin-blog/the-hitchhikers-guide-to-smart-contracts-in-ethereum-848f08001f05 )。第 3 步是与已部署的合约交互。
当我进入
truffle(default)> var poe = ProofOfExistence1.deployed()
结果我得到“未定义”,也无法与以下命令交互。我肯定部署了合同,因为
truffle(development)> ProofOfExistence1.deployed()
让我输出并列出合同中的所有功能等。用 testrpc 和 geth testnet 进行了尝试,所以我猜它与松露有关?