-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deploy error (version: 2.15.0 ): ProviderError: too many arguments, want at most 1 #4010
Comments
I cannot reproduce this. I didn't do it in that okchain network, but the error you are getting shouldn't be affected by which network you are using. Can you double check that those reproduction steps are accurate? |
same issue with some other chain |
There isn't much we can do without reproduction steps. |
I have the same issue with okt chain |
The OKChain network might have some issues because when I deployed the same contract on the Goerli network, it functioned perfectly. You can find the deployed address here: https://goerli.etherscan.io/address/0xfd472Ba195f2032fa8A59Ac97E031446aF434b37#code |
Thank you @Haripandey21. It seems like there's nothing we can do on our side, so I'm going to close this. I suggest reaching out to someone working on that chain's node implementation (or the node provider, idk) and letting them know about this. |
@fvictorio We are facing similar issue on a different chain as well. Can you specify which part of the hardhat is bugging out. So that we can track down the error from our end as well. |
Sorry but I can't because no one has told me yet how to reproduce it 🤷♂️ |
@anbang @jveer634 Try adding explicit
The problem is most probably caused by an outdated ethereum node (geth < 1.9.22 or similar) which doesn't support |
the old version works fine, since I upgraded hardhat and typechain it caused the error |
@fvictorio can we do fallback to the old estimate gas version when the newer version causes error? |
@0xtrou unless I'm missing something, that behavior comes from ethers, not from our plugin, so you should try asking in their repo. |
Version of Hardhat
2.15.0
What happened?
deploy error when on other network
Minimal reproduction steps
This is the example: https://github.com/anbang/hardhat-deploy-example
npm i
.env
file in project root path.env.example
npm run compile
npm run d:o
ornpx hardhat run scripts/deploy.ts --network okchain
Error info :
ProviderError: too many arguments, want at most 1
at HttpProvider.request (/Users/mac/Documents/xxxxxxxxxxxx/node_modules/hardhat/src/internal/core/providers/http.ts:88:21)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async HardhatEthersProvider.estimateGas (/Users/mac/Documents/xxxxxxxxxxxx/node_modules/@nomicfoundation/hardhat-ethers/src/internal/hardhat-ethers-provider.ts:209:27)
at async /Users/mac/Documents/xxxxxxxxxxxx/node_modules/@nomicfoundation/hardhat-ethers/src/signers.ts:235:35
at async Promise.all (index 0)
at async HardhatEthersSigner._sendUncheckedTransaction (/Users/mac/Documents/xxxxxxxxxxxx/node_modules/@nomicfoundation/hardhat-ethers/src/signers.ts:256:7)
at async HardhatEthersSigner.sendTransaction (/Users/mac/Documents/xxxxxxxxxxxx/node_modules/@nomicfoundation/hardhat-ethers/src/signers.ts:125:18)
at async ContractFactory.deploy (/Users/mac/Documents/xxxxxxxxxxxx/node_modules/ethers/src.ts/contract/factory.ts:106:24)
at async main (/Users/mac/Documents/xxxxxxxxxxxx/scripts/deploy.ts:9:16)
Search terms
No response
The text was updated successfully, but these errors were encountered: