简体   繁体   中英

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

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

ProviderError: HttpProviderError at HttpProvider.request (.../node_modules/hardhat/src/internal/core/providers/http.ts:78:19)

i expect addPool function in farm execute like other fucntions

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. After isErrorResponse checks, add: console.log(response) or console.log(jsonRpcResponse) .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM