-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fallback gas estimates to be set according to the blockchain #775
Comments
The fallback can be overridden per chain:
Ok, I see that you are using the ledger directly without a connection. Therefore, you can pass the open-aea/plugins/aea-ledger-ethereum/aea_ledger_ethereum/ethereum.py Lines 904 to 906 in 6e4ba0c
Let me know when you try this and if this does not work. |
yeah right @Adamantios! I already did that here and it worked! |
|
The rest of the two points makes sense to me! So, is there any actionable for this issue to keep it open, or should we close it? I see just to improve the warning? |
Yes, let's keep it open for the warning improvements and also to revisit the third point above. |
Basically we need to have a common default values logic to do these transactions in any chain, and the question is that is this logic already present anywhere? Or if not then where should we have that? |
Describe the bug
We use these fallback estimates which are used when gas estimation fails. These are hardcoded values, but we can't use the same values for every chain. For one chain
"maxFeePerGas": to_wei(20, GWEI)
should be fine, but for some other chain it could be totally off a reasonable number.At the moment if gas estimation fails, the whole transaction fails because it may ask for ~44 ETH for the gas. But of course if you do have > 44 ETH the gas estimation fails, but the transaction goes through.
To Reproduce
Steps to reproduce the behavior:
Here we estimate gas for a safe deployment transaction on Gnosis and Base. It works on Gnosis but fails on Base, due to the above issue.
Expected behavior
The gas should be estimated in the transaction on Base above.
Screenshots
N/A
Desktop (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: