-
Notifications
You must be signed in to change notification settings - Fork 5k
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
estimateGas errors when using defaultAccount #3188
Comments
@mrkurosawa Could you list your:
|
ethereum Geth/v1.9.6 go1.11.5 |
same as #3175 I believe, MEW reverted back to 1.2.1 due to this issue |
I think @mrkurosawa might have a slightly different issue because their Two questions:
|
@mrkurosawa Have just added a very simple |
web 1.2.1 same error. I tried just rpc call eth_getBalance with data generated by encodeABI, but have same error. Looks like it's geth 1.9.6 problem. Because before update everything worked fine. |
Updated ethereum to 1.9.7 and same error, lol. |
If you can isolate it to geth it would be valuable to report it to them. Maybe there's already something in the issues there as well. But it could also be that
This error message is generated by Geth fwiw, not web3. If you discover this isn't directly caused by Web3 feel free to close, otherwise will leave open for time being. |
Well, it's seems like web3 problem or something, because problem solved, when i rename 'defaultAccount' param to 'from' here:
Now everything works good, but i am interested why this happened? i thought 'from' and 'defaultAccount' is same thing. |
@mrkurosawa Thanks for solving. Looking at the docs here, I don't see But that doesn't work very well in the kind of flow that you've set up. We should look into this and see if it can be improved. |
Mmm, I looked in eth-contract and it seem like this should be working as expected... needs more investigation. |
Yep i just tested traffic with tcpdump and discover in first case with 'defaultAccount' it's sending data without 'from' param and it leads to the error obviously, but when i rename it to 'from', everithing works good. So it's my fault, only one thing i dont understand, why it worked without errors earlier? |
Anyways it's solved |
Before send tokens from to address, i need calculate estimateGas, but after last update it starts to throw error:
UnhandledPromiseRejectionWarning: Error: Returned error: gas required exceeds allowance (9948620) or always failing transaction
Error happens when ctApprove.methods.transferFrom( fromAccount, toAccount, balanceIncome ).estimateGas() calls.
How can i fix this problem?
The text was updated successfully, but these errors were encountered: