-
Notifications
You must be signed in to change notification settings - Fork 8
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 twin inefficiencies #656
Conversation
2fbdfda
to
436ead2
Compare
436ead2
to
641a0a5
Compare
5c56699
to
43be817
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.
Looks good, I just added a question about potential performance enhancement.
Also, I think it would be nice to have a test that sort of shows that scenario 1. from #630 is possible now (i.e. twin can be reused).
4bfd671
to
15d2632
Compare
631e373
to
677912f
Compare
3e4526b
to
c903414
Compare
c903414
to
ccae0cb
Compare
contracts/protocol/facets/ProtocolInitializationHandlerFacet.sol
Outdated
Show resolved
Hide resolved
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
@anajuliabit it looks like we need to fix the conflicts here ^^ |
1555bc4
to
38e4a67
Compare
@anajuliabit just to say that the tests are still failing here... |
@mischat #656 (comment) |
@anajuliabit I pushed the fix for failing tests. Slot calculation was ok, there were just some ethersv6 related breaking changes. |
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 ... nice to pull out that for loop
twinRanges.pop(); | ||
|
||
// Delete rangeIdByTwin mapping | ||
delete lookups.rangeIdByTwin[_twinId]; | ||
} |
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 fun :)
Fix #630