[英]ProviderError: HttpProviderError at HttpProvider.request (.../node_modules/hardhat/src/internal/core/providers/http.ts:78:19)
i was tring to deploy a dex in my testing envirolment this is the link to github repo https://github.com/hamed-elahifar/geoswa3我想在我的测试环境中部署一个 dex 这是 github 仓库的链接https://github.com/hamed-elahifar/geoswa3
this is the steps in deploy.js script in the main function at first we deploy erc20 tokens after that router and factory for swap deployed next step will approve router to use erc20 tokens after that script create pair in swap and add liquidity to them next step is adding these pairs to farm, but we got following error这是主要功能中 deploy.js 脚本中的步骤,首先我们部署 erc20 令牌,然后部署交换的路由器和工厂下一步将批准路由器在该脚本创建交换对后使用 erc20 令牌,并下一步向它们添加流动性正在将这些对添加到农场,但出现以下错误
ProviderError: HttpProviderError at HttpProvider.request (.../node_modules/hardhat/src/internal/core/providers/http.ts:78:19) ProviderError:HttpProvider.request 处的 HttpProviderError(.../node_modules/hardhat/src/internal/core/providers/http.ts:78:19)
i expect addPool function in farm execute like other fucntions我希望农场中的 addPool 函数像其他函数一样执行
It is not direct solution to your problem, but you can add some lines to node_modules/hardhat/internal/core/providers/http.js
to debug.这不是您问题的直接解决方案,但您可以在
node_modules/hardhat/internal/core/providers/http.js
中添加一些行进行调试。 After isErrorResponse
checks, add: console.log(response)
or console.log(jsonRpcResponse)
.在
isErrorResponse
检查后,添加: console.log(response)
或console.log(jsonRpcResponse)
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.