12 关于truffle的一些问题记录

1、启动geth后查看
1.1 方法1

geth --datadir data  --rpc --port 1997 --networkid 921 console 2>> test.log

1.2 方法2
在这里插入图片描述
1.3 查看
在这里插入图片描述

2、过滤出geth执行程序,然后kill(因为之前启动的时候命令有误)
在这里插入图片描述
在这里插入图片描述

3、truffle unbox webpack问题
3.1 报错

Error: Truffle Box at URL https://github.com/truffle-box/webpack-box doesn't exist. If you believe this is an error, please contact Truffle support.

在这里插入图片描述
3.2 解决

git clone https://github.com/truffle-box/webpack-box

在这里插入图片描述

3.3 生成目录
在这里插入图片描述

3.4 truffle compile成功
补充:修改文件夹权限(因为之前是在根目录下操作的)
在这里插入图片描述

4、truffle migrate问题
4.1 报错

Error: No network specified. Cannot determine current network.

在这里插入图片描述

4.1.1 参考
https://blog.csdn.net/hpp24/article/details/79414175

4.1.2 修改
在这里插入图片描述

4.2 报错

Could not connect to your Ethereum client. Please check that your Ethereum client:
    - is running
    - is accepting RPC connections (i.e., "--rpc" option is used in geth)
    - is accessible over the network
    - is properly configured in your Truffle configuration file (truffle.js)

在这里插入图片描述
4.2.1参考
https://blog.csdn.net/wahaha13168/article/details/80641567
在这里插入图片描述

4.3 报错

Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: exceeds block gas limit

在这里插入图片描述

4.3.1 参考
https://blog.csdn.net/JIYILANZHOU/article/details/79594808

4.4 报错

Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: authentication needed: password or unlock

在这里插入图片描述
4.4.1 参考
https://blog.csdn.net/zhangce315/article/details/79666350

4.4.2 解决
在这里插入图片描述

5、最后处于监听状态
在这里插入图片描述

5.1 参考
https://www.cnblogs.com/Evsward/p/contract.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值