-
Notifications
You must be signed in to change notification settings - Fork 4.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
Update addTxGasDefaults and _getDefaultGasFees to work with new estimate types, and ensure we correctly handle gas price estimates when on EIP1559 networks #11615
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
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.
This is excellent Dan! Thank you so much!
04caeb9
to
266d26b
Compare
69e56c4
to
3d89cc0
Compare
Builds ready [503d625]
Page Load Metrics (638 ± 25 ms)
|
Builds ready [8782855]
Page Load Metrics (712 ± 44 ms)
|
cbc3cad
to
982aa55
Compare
Builds ready [982aa55]
Page Load Metrics (690 ± 29 ms)
|
Builds ready [0ce50e8]
Page Load Metrics (632 ± 23 ms)
|
0b24e29
to
8c4cf15
Compare
0ce50e8
to
a7e4c10
Compare
@@ -449,11 +451,13 @@ export default class ConfirmTransactionBase extends Component { | |||
/>, | |||
])} | |||
subTitle={ | |||
<GasTiming |
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.
This actually doesn't need to happen in this PR and will be removed when I correctly rebase. But It is okay to have it here for now, so that the error it throws in not a distraction for QA. It has been fixed properly on another PR that will soon be merged
- Remove change after rebasing onto develop
b4e8981
to
a1e030d
Compare
a7e4c10
to
e0c9eec
Compare
a1e030d
to
5aad984
Compare
… all new gas fee estimate types
e0c9eec
to
742622f
Compare
Builds ready [742622f]
Page Load Metrics (682 ± 36 ms)
|
LGTM! |
This PR ensures that transactions created by dapps will work correctly, on both EIP1559 compatible networks and on networks without compatibility, and both for txes with dapp suggested fees and txes where the dapp does not suggest the fee. It also ensures that if we are on an EIP1559 network, and our request for gas fee estimates fails and so we have to fall back to a eth_gasPrice call, that those estimates are handled correctly as well.
eth_gasPrice estimates on an EIP-1559 network are to be set to the
maxFeePerGas
and themaxPriorityFeePerGas
For testing, it is recommended to use this branch: MetaMask/test-dapp#119
(I will add some demo videos here a bit later)
To do: