Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
f2bc432b
Commit
f2bc432b
authored
Aug 03, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkl2: fix
parent
02f144e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
main.go
op-chain-ops/cmd/check-l2/main.go
+0
-17
No files found.
op-chain-ops/cmd/check-l2/main.go
View file @
f2bc432b
...
...
@@ -810,23 +810,6 @@ func getEIP1967ImplementationAddress(client *ethclient.Client, addr common.Addre
return
impl
,
nil
}
// checkPredeploy ensures that the predeploy at index i has the correct proxy admin set
func
checkPredeploy
(
client
*
ethclient
.
Client
,
i
uint64
)
error
{
bigAddr
:=
new
(
big
.
Int
)
.
Or
(
genesis
.
BigL2PredeployNamespace
,
new
(
big
.
Int
)
.
SetUint64
(
i
))
addr
:=
common
.
BigToAddress
(
bigAddr
)
if
!
predeploys
.
IsProxied
(
addr
)
{
return
nil
}
admin
,
err
:=
getEIP1967AdminAddress
(
client
,
addr
)
if
err
!=
nil
{
return
err
}
if
admin
!=
predeploys
.
ProxyAdminAddr
{
return
fmt
.
Errorf
(
"%s does not have correct proxy admin set"
,
addr
)
}
return
nil
}
// getInitialized will get the initialized value in storage of a contract.
// This is an incrementing number that starts at 1 and increments each time that
// the contract is upgraded.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment