我试着遵循这个教程:
https://docs.opensea.io/docs/1-structuring-your-smart-contract
甚至找到了这个非常有用的YouTube视频来指导我:
https://www.youtube.com/watch?v=lbXcvRx0o3Y&ab_channel=DanViau
但是在安装和设置了我需要的所有东西之后,我遇到了一个问题。当我尝试使用以下bash命令部署合约时,出现了问题:
truffle deploy --network rinkeby我得到的错误消息是:
Error: There was a timeout while attempting to connect to the network.
Check to see that your provider is valid.
If you have a slow internet connection, try configuring a longer timeout in your Truffle config. Use the networks[networkName].networkCheckTimeout property to do this.
at Timeout._onTimeout (C:\Users\alonb\.nvm\versions\node\v12.22.5\bin\node_modules\truffle\build\webpack:\packages\provider\index.js:56:1)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)它不是由缓慢的互联网连接引起的-我知道这是因为我已经尝试在3个不同的WiFi连接上执行这个命令,其中一个以200Mb/s的速率。
我曾尝试更改truffle-config.js文件并添加更长的超时阈值(如建议的here),但唯一改变的是错误消息出现的时间要长得多。
技术信息-我正在使用Git Bash,npm版本6.14.14,nvm版本0.38.0,节点版本12.22.5。
有什么建议吗?我迷路了。
孤单
发布于 2021-08-27 12:42:06
解决方案非常简单--
而不是只使用炼金术密钥的相关部分:
400Oo3XScVabXXXX8sePUEP9tb90gXXXX
我使用了整个URL:
https://eth-rinkeby.alchemyapi.io/v2/40Oo3XScVabXXXX8sePUEp9tb90gXXXX
发布于 2021-09-24 19:51:24
我有相同的经验,但当使用truffle.My互联网连接是ok的时候,试着从Git bash切换到终端(CMD).Use一个全新的终端避免Gitbash和powershell。
https://stackoverflow.com/questions/68877009
复制相似问题