区块链报错 5 | Contract has not been deployed to detect network (network/artifact mismatch)
Posted 111辄
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了区块链报错 5 | Contract has not been deployed to detect network (network/artifact mismatch)相关的知识,希望对你有一定的参考价值。
初学记录 · 欢迎交流
区块链DApp从零开始学 (一) | DApp抓包
区块链DApp从零开始学 (二) | 超详细 DApp创建 | 发行代币token |宠物领养区块链报错1 | npm run dev 无法解析json格式 | npm ERR JSON.parse Failed to parse json
区块链报错2 | 区块链npm run dev失败lite-server
区块链报错3 | truffle unbox 报错 | downloading失败 | unbox failed
区块链报错4 | 区块链玄学 | truffle unbox下载downloading步骤失败
区块链报错5 | Contract has not been deployed to detect network (network/artifact mismatch)
区块链报错6 | Failed to load resource: the server responded with a status of 404 (Not Found)
可能有两个原因:
一:没有部署 ,需要 migrate --reset [–all]
二:端口问题,即metamask或者私有链端口和合约端口不是一个
我出错的原因是部署失败emm,
部署失败的提示信息没显红,我没仔细看也没发现hh
好多遍后我才发现
迁移文件忘改变量名了,找不到TutorialToken这个变量
解决完这个问题OK
以上是关于区块链报错 5 | Contract has not been deployed to detect network (network/artifact mismatch)的主要内容,如果未能解决你的问题,请参考以下文章
区块链报错4 | 区块链玄学 | truffle unbox下载downloading步骤失败
区块链报错6 | Failed to load resource: the server responded with a status of 404 (Not Found)
区块链DApp从零开始学 | 超详细 DApp创建 | 发行代币token | 宠物领养
神经网络,python报错:AttributeError: 'DataFrame' object has no attribute 'ravel'
facenet pyhton3.5 训练 train_softmax.py 时报错AttributeError: 'dict' object has no attribute '