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
44057030
Unverified
Commit
44057030
authored
Nov 11, 2023
by
Michael de Hoog
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Variable rename
parent
1095a392
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
helpers.go
op-chain-ops/genesis/helpers.go
+3
-3
No files found.
op-chain-ops/genesis/helpers.go
View file @
44057030
...
@@ -20,8 +20,8 @@ var (
...
@@ -20,8 +20,8 @@ var (
l2PredeployNamespace
=
common
.
HexToAddress
(
"0x4200000000000000000000000000000000000000"
)
l2PredeployNamespace
=
common
.
HexToAddress
(
"0x4200000000000000000000000000000000000000"
)
// BigL2PredeployNamespace represents the predeploy namespace as a big.Int
// BigL2PredeployNamespace represents the predeploy namespace as a big.Int
BigL2PredeployNamespace
=
new
(
big
.
Int
)
.
SetBytes
(
l2PredeployNamespace
.
Bytes
())
BigL2PredeployNamespace
=
new
(
big
.
Int
)
.
SetBytes
(
l2PredeployNamespace
.
Bytes
())
// bigCodeName
S
pace represents the predeploy namespace as a big.Int
// bigCodeName
s
pace represents the predeploy namespace as a big.Int
bigCodeName
S
pace
=
new
(
big
.
Int
)
.
SetBytes
(
codeNamespace
.
Bytes
())
bigCodeName
s
pace
=
new
(
big
.
Int
)
.
SetBytes
(
codeNamespace
.
Bytes
())
// ImplementationSlot represents the EIP 1967 implementation storage slot
// ImplementationSlot represents the EIP 1967 implementation storage slot
ImplementationSlot
=
common
.
HexToHash
(
"0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc"
)
ImplementationSlot
=
common
.
HexToHash
(
"0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc"
)
// AdminSlot represents the EIP 1967 admin storage slot
// AdminSlot represents the EIP 1967 admin storage slot
...
@@ -69,7 +69,7 @@ func AddressToCodeNamespace(addr common.Address) (common.Address, error) {
...
@@ -69,7 +69,7 @@ func AddressToCodeNamespace(addr common.Address) (common.Address, error) {
return
common
.
Address
{},
fmt
.
Errorf
(
"cannot handle non predeploy: %s"
,
addr
)
return
common
.
Address
{},
fmt
.
Errorf
(
"cannot handle non predeploy: %s"
,
addr
)
}
}
bigAddress
:=
new
(
big
.
Int
)
.
SetBytes
(
addr
[
18
:
])
bigAddress
:=
new
(
big
.
Int
)
.
SetBytes
(
addr
[
18
:
])
num
:=
new
(
big
.
Int
)
.
Or
(
bigCodeName
S
pace
,
bigAddress
)
num
:=
new
(
big
.
Int
)
.
Or
(
bigCodeName
s
pace
,
bigAddress
)
return
common
.
BigToAddress
(
num
),
nil
return
common
.
BigToAddress
(
num
),
nil
}
}
...
...
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