Can't Yarn compile polyflash #25
Unanswered
h4ckm1n-dev
asked this question in
Q&A
Replies: 3 comments
-
Sounds like a problem with Did you create a .env file with that? And is that absolute url? https://github.com/yuichiroaoki/poly-flash#1-setup-environment-variables |
Beta Was this translation helpful? Give feedback.
0 replies
-
yeah that was the <> that i didn't delete ... Was thinking of your probleme with 1inch apy. maybe you could use paraswap api if it has one (it's a agregator like 1inch) |
Beta Was this translation helpful? Give feedback.
0 replies
-
hello i have a question how can i execute the smart contrat? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello yuichiroaoki i've got an error when tryning to test the poly-flash ...
`c:\FlashLoan\poly-flash-main>yarn test test/flashloan.test.ts
No need to generate any newer typings.
Flashloan
1) "before all" hook in "Flashloan"
0 passing (277ms)
1 failing
"before all" hook in "Flashloan":
TypeError: Only absolute URLs are supported
at getNodeRequestOptions (node_modules\node-fetch\lib\index.js:1305:9)
at c:\FlashLoan\poly-flash-main\node_modules\node-fetch\lib\index.js:1410:19
at new Promise ()
at fetch (node_modules\node-fetch\lib\index.js:1407:9)
at HttpProvider._fetchJsonRpcResponse (node_modules\hardhat\src\internal\core\providers\http.ts:140:30)
at async HttpProvider.request (node_modules\hardhat\src\internal\core\providers\http.ts:55:29)
at async getNetworkId (node_modules\hardhat\src\internal\hardhat-network\provider\utils\makeForkClient.ts:109:28)
at async makeForkClient (node_modules\hardhat\src\internal\hardhat-network\provider\utils\makeForkClient.ts:40:21)
at async Function.create (node_modules\hardhat\src\internal\hardhat-network\provider\node.ts:157:9)
at async HardhatNetworkProvider._init (node_modules\hardhat\src\internal\hardhat-network\provider\provider.ts:250:28)
An unexpected error occurred:
TypeError: Only absolute URLs are supported
at getNodeRequestOptions (c:\FlashLoan\poly-flash-main\node_modules\node-fetch\lib\index.js:1305:9)
at c:\FlashLoan\poly-flash-main\node_modules\node-fetch\lib\index.js:1410:19
at new Promise ()
at fetch (c:\FlashLoan\poly-flash-main\node_modules\node-fetch\lib\index.js:1407:9)
at HttpProvider._fetchJsonRpcResponse (c:\FlashLoan\poly-flash-main\node_modules\hardhat\src\internal\core\providers\http.ts:140:30)
at async HttpProvider.request (c:\FlashLoan\poly-flash-main\node_modules\hardhat\src\internal\core\providers\http.ts:55:29)
at async getNetworkId (c:\FlashLoan\poly-flash-main\node_modules\hardhat\src\internal\hardhat-network\provider\utils\makeForkClient.ts:109:28)
at async makeForkClient (c:\FlashLoan\poly-flash-main\node_modules\hardhat\src\internal\hardhat-network\provider\utils\makeForkClient.ts:40:21)
at async Function.create (c:\FlashLoan\poly-flash-main\node_modules\hardhat\src\internal\hardhat-network\provider\node.ts:157:9)
at async HardhatNetworkProvider._init (c:\FlashLoan\poly-flash-main\node_modules\hardhat\src\internal\hardhat-network\provider\provider.ts:250:28)
c:\FlashLoan\poly-flash-main>`
Beta Was this translation helpful? Give feedback.
All reactions