-
I got this 👇 error while I try to run my code. `C:\Users\Admin\Desktop\arbitrage flashloan\uniswapV3\node_modules\ethers\lib.commonjs\utils\errors.js:114 TypeError: no matching function (argument="key", value="callStatic", code=INVALID_ARGUMENT, version=6.0.0) Here is my full code: `const ethers = require("ethers"); const {abi:QuoterABI,} = require("@uniswap/v3-periphery/artifacts/contracts/lens/Quoter.sol/Quoter.json"); const provider = new ethers.JsonRpcProvider("..........."); async function getPrice(addressFrom,addressTo,amountInHuman){ const main = async () => { main();` |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
In v6, the name of the method comes first, so you should use:
Let me know if you have any further issues. :) |
Beta Was this translation helpful? Give feedback.
-
It looks like you are passing in a URL as your network name. It might be easier for you to use |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
In v6, the name of the method comes first, so you should use:
Let me know if you have any further issues. :)