下载源码后编译,部署,但出现了以下问题:

SimpleStorage has not been deployed to detected network

通过浏览器控制台查出:Error: SimpleStorage has not been deployed to detected network (network/artifact mismatch)

是因为钱包的网络和本地不在同一个网络,因此你无法与他们互动,确保Metamask正在侦听与testrpc运行相同的端口(默认端口9545)。

1、首先留意端口,记得compile->migrate都执行,并且不能关闭该窗口

SimpleStorage has not been deployed to detected network

2、确保Metamask处于监听本地网络。

SimpleStorage has not been deployed to detected network

此时大功告成,(应该不需要刷新),显示出正常页面。

SimpleStorage has not been deployed to detected network

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-11-16
  • 2021-11-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-08-08
  • 2022-12-23
  • 2022-01-29
相关资源
相似解决方案