-
-
Notifications
You must be signed in to change notification settings - Fork 188
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 EIP-1559 compatibility during network lookup #1236
Update EIP-1559 compatibility during network lookup #1236
Conversation
2e7594c
to
7d1d9a6
Compare
This comment was marked as resolved.
This comment was marked as resolved.
c88d819
to
b319771
Compare
7d1d9a6
to
9ad143c
Compare
9ad143c
to
92d373a
Compare
@@ -5445,7 +5576,7 @@ describe('NetworkController', () => { | |||
|
|||
await waitForStateChanges(messenger, { | |||
propertyPath: ['networkId'], | |||
count: 1, | |||
count: 2, |
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.
It seems that the network ID we're checking for here was always the second state change. But the second state change was made synchronously after the first one, so the test still passed.
The EIP-1559 compatibility state is now updated during the network lookup, rather than during the provider configuration step. Closes #1203
eb4fae4
to
4e1f13c
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.
LGTM!
The EIP-1559 compatibility state is now updated during the network lookup, rather than during the provider configuration step. Closes #1203
The EIP-1559 compatibility state is now updated during the network lookup, rather than during the provider configuration step. Closes #1203
Description
The EIP-1559 compatibility state is now updated during the network lookup, rather than during the provider configuration step. This matches the extension more closely. This check made more sense during the network lookup anyway; it's part of checking the status of the network, not of configuring the provider.
Changes
lookupNetwork
will now check the latest block and update the network details state.References
Closes #1203
Checklist