Skip to content

Fix ENS controller network change handler#1362

Merged
Gudahtt merged 1 commit intomainfrom
fix-ens-controller-network-change-handler
May 10, 2023
Merged

Fix ENS controller network change handler#1362
Gudahtt merged 1 commit intomainfrom
fix-ens-controller-network-change-handler

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented May 10, 2023

Description

The network change handler for the ENS controller has been broken since the PR #1170 due to a conflict with #1196, which was merged around the same time. It referenced the network property of the network state that we have removed.

The change handler has been updated to use networkId instead. Additionally, the NetworkState type has been imported so that we're less likely to make this mistake again.

Changes

  • Fixed: Fix ENS controller failure to initialize after switching networks.

References

Relates to #1209

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation for new or updated code as appropriate (note: this will usually be JSDoc)
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

The network change handler for the ENS controller has been broken since
the PR #1170 due to a conflict with #1196, which was merged around the
same time. It referenced the `network` property of the network state
that we have removed.

The change handler has been updated to use `networkId` instead.
Additionally, the `NetworkState` type has been imported so that we're
less likely to make this mistake again.
@Gudahtt Gudahtt marked this pull request as ready for review May 10, 2023 18:57
@Gudahtt Gudahtt requested a review from a team as a code owner May 10, 2023 18:57
Copy link
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Gudahtt Gudahtt merged commit ea31aa5 into main May 10, 2023
@Gudahtt Gudahtt deleted the fix-ens-controller-network-change-handler branch May 10, 2023 19:16
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
The network change handler for the ENS controller has been broken since
the PR #1170 due to a conflict with #1196, which was merged around the
same time. It referenced the `network` property of the network state
that we have removed.

The change handler has been updated to use `networkId` instead.
Additionally, the `NetworkState` type has been imported so that we're
less likely to make this mistake again.
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
The network change handler for the ENS controller has been broken since
the PR #1170 due to a conflict with #1196, which was merged around the
same time. It referenced the `network` property of the network state
that we have removed.

The change handler has been updated to use `networkId` instead.
Additionally, the `NetworkState` type has been imported so that we're
less likely to make this mistake again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants