feat: add Super Root specific method to OptimismPortal#14532
feat: add Super Root specific method to OptimismPortal#14532smartcontracts merged 1 commit intofeat/interop-portal-updatesfrom
Conversation
7212d9c to
710cdce
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feat/interop-portal-updates #14532 +/- ##
================================================================
- Coverage 81.54% 45.41% -36.13%
================================================================
Files 171 981 +810
Lines 9960 84460 +74500
================================================================
+ Hits 8122 38359 +30237
- Misses 1670 43189 +41519
- Partials 168 2912 +2744
Flags with carried forward coverage won't be shown. Click here to find out more.
|
d8e738b to
e376c05
Compare
0572e01 to
1b92ea2
Compare
eb841eb to
cc6ad30
Compare
1b92ea2 to
0fedf0c
Compare
cc6ad30 to
70c0046
Compare
0fedf0c to
278d58f
Compare
70c0046 to
749e533
Compare
278d58f to
ad0ae2a
Compare
749e533 to
42f3374
Compare
ad0ae2a to
66f0890
Compare
42f3374 to
68faef2
Compare
f9ab615 to
6f633e1
Compare
68faef2 to
8a98aef
Compare
6db3d67 to
1040c51
Compare
1041722 to
1a6c9c3
Compare
| if (_isProxy) { | ||
| require(val == 1, "DeployUtils: storage value is not 1 at the given slot and offset"); | ||
| require( | ||
| val >= 1 && val < type(uint8).max, "DeployUtils: storage value is not set at the given slot and offset" | ||
| ); | ||
| } else { | ||
| require(val == type(uint8).max, "DeployUtils: storage value is not 0xff at the given slot and offset"); | ||
| } |
There was a problem hiding this comment.
these two blocks just boil down to require(val>0), which doesn't tell us much in a world with reinitializers.
WDYT about making the reinitializer value a public constant in the bytecode, then we can check that the slotVal matches either that value of the max uint8. ie.
uint public constant initVersion;
function initialize() reinitializer(initVersion) {}
function upgrade() reinitializer(initVersion) {}
There was a problem hiding this comment.
Resolved with a new dedicated contract for this
402ded5 to
159fb05
Compare
ControlCplusControlV
left a comment
There was a problem hiding this comment.
Adding note - reviewed the Solidity and didn't have any comments, but planning to revisit. The overall design lgtm though
c5eafb2 to
5906d4d
Compare
packages/contracts-bedrock/snapshots/storageLayout/Reinitializable.json
Outdated
Show resolved
Hide resolved
5906d4d to
831419f
Compare
Updates the OptimismPortal to include a method that allows users to prove against Super Roots for interop.
831419f to
540c870
Compare
Updates the OptimismPortal to include a method that allows users to prove against Super Roots for interop.