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
e764bf5e
Unverified
Commit
e764bf5e
authored
Feb 27, 2023
by
mergify[bot]
Committed by
GitHub
Feb 27, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4967 from ethereum-optimism/feat/cli-3440
op-node: Fix storage slot comment
parents
280ec3fb
f2809939
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
utils.go
op-node/withdrawals/utils.go
+2
-2
No files found.
op-node/withdrawals/utils.go
View file @
e764bf5e
...
@@ -262,10 +262,10 @@ func ParseMessagePassed(receipt *types.Receipt) (*bindings.L2ToL1MessagePasserMe
...
@@ -262,10 +262,10 @@ func ParseMessagePassed(receipt *types.Receipt) (*bindings.L2ToL1MessagePasserMe
return
nil
,
errors
.
New
(
"Unable to find MessagePassed event"
)
return
nil
,
errors
.
New
(
"Unable to find MessagePassed event"
)
}
}
// StorageSlotOfWithdrawalHash determines the storage slot of the
Withdraw
er contract to look at
// StorageSlotOfWithdrawalHash determines the storage slot of the
L2ToL1MessagePass
er contract to look at
// given a WithdrawalHash
// given a WithdrawalHash
func
StorageSlotOfWithdrawalHash
(
hash
common
.
Hash
)
common
.
Hash
{
func
StorageSlotOfWithdrawalHash
(
hash
common
.
Hash
)
common
.
Hash
{
// The withdrawals mapping is the
second (0 indexed) storage element in the Withdraw
er contract.
// The withdrawals mapping is the
0th storage slot in the L2ToL1MessagePass
er contract.
// To determine the storage slot, use keccak256(withdrawalHash ++ p)
// To determine the storage slot, use keccak256(withdrawalHash ++ p)
// Where p is the 32 byte value of the storage slot and ++ is concatenation
// Where p is the 32 byte value of the storage slot and ++ is concatenation
buf
:=
make
([]
byte
,
64
)
buf
:=
make
([]
byte
,
64
)
...
...
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