赞
踩
这是web3.js开发者在创建合约对象时很容易发生的错误,其实就是不同版本web3.js带来的API变化问题。
请检查你的web3.js版本:
web3.eth.contract(studentFactoryArtifact,address);// 注意区分contract大小写
new web3.eth.Contract(studentFactoryArtifact,address); // 注意区分Contract大小写
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。