-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
ethers.js throws invalid BigNumber error from estimateGas #1243
Comments
Thanks! I’ll go through the provider methods a bit and make sure better errors are bubbled up. :) |
I'm also facing this issue when trying to perform payable Contract method and specifying amount i'm want to send. You can test factory_address: 0xdDB10cFC3cea471708B1647415F71BCeA9f96145 Works when not specified amountError when amount passed to overridesis it fixed somehow ? |
@edward-arinin-web-dev , this issue was about the original error being swallowed instead of bubbling up and it's not fixed yet. For your case, were you using the same signer to call createUserWallet()? The contract reverts if the same signer was used to createUserWallet(), regardless of whether amount is passed in or not. |
This should be fixed in 5.0.31. Try it out and let me know! :) |
Closing this now, but if you still have issues, please feel free to re-open. Thanks! :) |
Hi I am getting the same error from ethers abi. Here is the error stack from
My code is:
Could anyone help on this? A bit more info:
|
Can you please add this console.log({ path, to, deadline, value }); My first guess is that your |
The following error was received when estimating gas on a contract function that reverts.
This error seems to only happen if the walletConnect web3-provider was used. I tested with the
Infura
andetherscan
providers, they both throw with the revert reason as expected.The error was thrown in the return statement in the following code. The BigNumber.from() didn't expect an
undefined
returned from the estimateGas().The text was updated successfully, but these errors were encountered: