-
-
Notifications
You must be signed in to change notification settings - Fork 223
Handling the error when eth_estimateGas fails #920
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
Handling the error when eth_estimateGas fails #920
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @tommasini, left a few suggestions.
…imateGas error for the acual error
638715e
to
9a48838
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a few more suggestions (just typos in test names) but this is looking good. Clearly there's more we need to do to improve these tests, and I think it would really help if we could simplify estimateGas
because it does SO MUCH, but there's only so much you can do here, so I think what you have makes sense :)
@mcmire Thank you a lot for helping this PR have more quality! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
When we did a transaction with binance smart chain and the dapp doesn't send a gas value, we were not being able to execute the eth_estimateGas, it was falling do a general RPC error. Handle the error like the extension does it. Added a value to the Transaction object to be filled with an error if the eth_estimateGas fails.
When we did a transaction with binance smart chain and the dapp doesn't send a gas value, we were not being able to execute the eth_estimateGas, it was falling do a general RPC error. Handle the error like the extension does it. Added a value to the Transaction object to be filled with an error if the eth_estimateGas fails.
When we did a transaction with binance smart chain and the dapp doesn't send a gas value, we were not being able to execute the eth_estimateGas, it was falling do a general RPC error. Handle the error like the extension does it. Added a value to the Transaction object to be filled with an error if the eth_estimateGas fails.
Handling error when eth_estimateGas fails
Description
When we did a transaction with binance smart chain and the dapp doesn't send a gas value, we were not being able to execute the eth_estimateGas, it was falling do a general RPC error.
Proposed solution
Handle the error like the extension does it. Added a value to the Transaction object to be filled with an error if the eth_estimateGas fails.
FIXED:
JavaScript API does not work from within MetaMask's browser metamask-mobile#4621
Request for transaction that is going to fail, or with insufficient funds, results in silent failure with no error message metamask-mobile#4646
CHANGED:
If the eth_estimateGas fails, the transaction object will have a new variable with an error
Checklist
Issue
Resolves #???