Conversation
e14a2da to
448491e
Compare
Builds ready [448491e]
Page Load Metrics (714 ± 58 ms)
|
|
LGTM. |
Gudahtt
left a comment
There was a problem hiding this comment.
LGTM!
Though I think I've just discovered another related bug: this.checkName doesn't ever get initialized if the user switches from an unsupported network to a supported network while on this screen
448491e to
01bf74b
Compare
|
@Gudahtt scratches head this.checkName isn't even used... I guess we decided not to denounce lookupEnsName after all? Should I: |
Builds ready [01bf74b]
Page Load Metrics (569 ± 42 ms)
|
|
Huh. I started looking into what I think the debounce makes sense? But I'm a little concerned about using it without fixing this race condition, on the off chance that switching to use the debounce changes the timing in a way that exposes this issue further. |
Fixes: when switching networks the chainId is temporarily undefined, resulting in trying to construct a new instance of ENS without a network. This fix will prevent constructing ENS when the network isn't supported yet for ENS lookup. It will set this.ens to null when switching to an unsupported network.
Fixes #10559