我正在运行的东西truffle console工作正常,但失败truffle test。 的代码是: contract Geekt {
address[] usersByAddress;
function registerNewUser(string handle, bytes32 city, bytes32 state, bytes32 country) public re
如何正确调用松露控制台中的合同功能? 使用petshop示例项目,我成功将合同迁移到网络上。 在松露控制台I执行: var ad = Adoption.deployed()
这产生的答复: undefined
当我执行ad.adopt(23);采用为函数名和23为单位参数;我得到的例外TypeError: ad.getAdopters is not a function 我在调用函数时出现