metamask钱包,自定义测试网络,不知道链id,报以下错
error The endpoint returned a different chain ID: 0x539.
Local chains running on Ganache CLI are also breaking after upgrading Metamask to 8.1.3.
When adding custom networks to Metamask we started receiving the error The endpoint returned a different chain ID: 0x539.
In case it's helpful for anyone, the issue was caused by Ganache chain_id defaulting to 1337. Upgrading Ganache CLI to v6.11.0 and passing the option --chainId with the correct value fixed the problem.
默认为1337,输入1337就对了。
----------------------
js文件修改后无效
解决方法
浏览器会缓存某个网站的js文件,在开发web项目中,由于先前的js文件被缓存,所以在IDE中改变js文件后,浏览器还是继续引用浏览器缓存的先前那个js文件。所以只要把浏览器之前缓存的js文件删掉即可。以谷歌浏览器为例,在更多工具中选择清除浏览数据,把缓存的图片和文件删掉即可。如果想要不缓存js文件,可以在谷歌开发者工具中选择禁用js缓存。
还是没有解决
-----------------------又取消了,没解决,我把src文件中的代码拷贝到了我的里面
后面这个 dapp有太多不懂的地方,不知到哪里错了,也没什么意义,就算成功,也还是对这一块没有系统的认识
慢慢处理吧