使用truffle中部署带参数的合约说参数有误?

image.png

image.png

有什么问题嘛? 死活报错 Error: Deployment Failed

"Counter2" -- Invalid number of parameters for "undefined". Got 1 expected 0!.

请先 登录 后评论

最佳答案 2022-08-23 16:15

这里10也是参数吗,合约构造方法是无参的

请先 登录 后评论

其它 1 个回答

阿拉斯加的狗 - 区块链开发
请先 登录 后评论