Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Fix #2277 #2294
Fix #2277 #2294
Changes from 18 commits
8afd92a
007978e
76e13b8
83189db
cfa6b25
10e4beb
c34449c
cc90eb0
121fdfb
64ae5a3
88da4b9
d24022b
287f1d0
028b8fc
7a8a335
f01321e
3262478
ae05b32
1ffa097
5a38fa6
b1b9c9c
a00ed0d
9d0de13
26fc6b0
f3dd299
818d3b3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Yikes. Scary this was missed by both of us.
Yet another reason all of this must be cleaned up (#2271).
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.
After implementing
postUpgradeVerification
should be able to rewrite this as a 1-liner: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 function is essentially a copy-paste of the function above, handling the possibility of
reverseNamespaceLookups
(or namespaceLookups) not being defined. That was because the side-effects in the identity contract call thelookupCached
selector, and I thought that an incorrect state should not cause the side-effect to fail. The??null
part also coercesundefined
into null, so that the function returns only two types instead of three (string
,undefined
,null
).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.
OK, I can get with
?? null
but notcache?.[id]
. That should just becache[id]
.