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
7cf29750
Unverified
Commit
7cf29750
authored
Nov 19, 2023
by
Maurelian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-chain-ops: Remove InitializedValue from check-l2
parent
376b3a05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
main.go
op-chain-ops/cmd/check-l2/main.go
+1
-1
config.go
op-chain-ops/genesis/config.go
+1
-4
No files found.
op-chain-ops/cmd/check-l2/main.go
View file @
7cf29750
...
@@ -742,7 +742,7 @@ func checkL2CrossDomainMessenger(addr common.Address, client *ethclient.Client)
...
@@ -742,7 +742,7 @@ func checkL2CrossDomainMessenger(addr common.Address, client *ethclient.Client)
return
err
return
err
}
}
log
.
Info
(
"L2CrossDomainMessenger"
,
"_initialized"
,
initialized
)
log
.
Info
(
"L2CrossDomainMessenger"
,
"_initialized"
,
initialized
)
if
initialized
.
Uint64
()
!=
genesis
.
InitializedValue
{
if
initialized
.
Uint64
()
!=
1
{
return
fmt
.
Errorf
(
"%w: %s"
,
errInvalidInitialized
,
initialized
)
return
fmt
.
Errorf
(
"%w: %s"
,
errInvalidInitialized
,
initialized
)
}
}
...
...
op-chain-ops/genesis/config.go
View file @
7cf29750
...
@@ -26,9 +26,6 @@ import (
...
@@ -26,9 +26,6 @@ import (
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
)
// InitializedValue represents the `Initializable` contract value. It should always be 1.
const
InitializedValue
=
1
var
(
var
(
ErrInvalidDeployConfig
=
errors
.
New
(
"invalid deploy config"
)
ErrInvalidDeployConfig
=
errors
.
New
(
"invalid deploy config"
)
ErrInvalidImmutablesConfig
=
errors
.
New
(
"invalid immutables config"
)
ErrInvalidImmutablesConfig
=
errors
.
New
(
"invalid immutables config"
)
...
@@ -730,7 +727,7 @@ func NewL2StorageConfig(config *DeployConfig, block *types.Block) (state.Storage
...
@@ -730,7 +727,7 @@ func NewL2StorageConfig(config *DeployConfig, block *types.Block) (state.Storage
"msgNonce"
:
0
,
"msgNonce"
:
0
,
}
}
storage
[
"L2CrossDomainMessenger"
]
=
state
.
StorageValues
{
storage
[
"L2CrossDomainMessenger"
]
=
state
.
StorageValues
{
"_initialized"
:
InitializedValue
,
"_initialized"
:
1
,
"_initializing"
:
false
,
"_initializing"
:
false
,
"xDomainMsgSender"
:
"0x000000000000000000000000000000000000dEaD"
,
"xDomainMsgSender"
:
"0x000000000000000000000000000000000000dEaD"
,
"msgNonce"
:
0
,
"msgNonce"
:
0
,
...
...
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