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
441bb2c0
Commit
441bb2c0
authored
Feb 17, 2023
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update semver assertion in `check-l2.ts`
parent
efc98d26
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
11 deletions
+10
-11
l1crossdomainmessenger.go
op-bindings/bindings/l1crossdomainmessenger.go
+1
-1
l1crossdomainmessenger_more.go
op-bindings/bindings/l1crossdomainmessenger_more.go
+1
-1
l2crossdomainmessenger.go
op-bindings/bindings/l2crossdomainmessenger.go
+1
-1
l2crossdomainmessenger_more.go
op-bindings/bindings/l2crossdomainmessenger_more.go
+1
-1
CrossDomainMessenger.sol
...acts-bedrock/contracts/universal/CrossDomainMessenger.sol
+5
-6
check-l2.ts
packages/contracts-bedrock/tasks/check-l2.ts
+1
-1
No files found.
op-bindings/bindings/l1crossdomainmessenger.go
View file @
441bb2c0
This diff is collapsed.
Click to expand it.
op-bindings/bindings/l1crossdomainmessenger_more.go
View file @
441bb2c0
This diff is collapsed.
Click to expand it.
op-bindings/bindings/l2crossdomainmessenger.go
View file @
441bb2c0
This diff is collapsed.
Click to expand it.
op-bindings/bindings/l2crossdomainmessenger_more.go
View file @
441bb2c0
This diff is collapsed.
Click to expand it.
packages/contracts-bedrock/contracts/universal/CrossDomainMessenger.sol
View file @
441bb2c0
...
@@ -183,7 +183,7 @@ abstract contract CrossDomainMessenger is
...
@@ -183,7 +183,7 @@ abstract contract CrossDomainMessenger is
bytes32 _hashMsgHash;
bytes32 _hashMsgHash;
assembly {
assembly {
// Re-hash the `_msgHash` with the `0xcafebabe` salt to reduce the possibility
// Re-hash the `_msgHash` with the `0xcafebabe` salt to reduce the possibility
// of collisions.
// of collisions
with existing storage slots
.
mstore(0x00, _msgHash)
mstore(0x00, _msgHash)
mstore(0x20, 0xcafebabe)
mstore(0x20, 0xcafebabe)
_hashMsgHash := keccak256(0x00, 0x40)
_hashMsgHash := keccak256(0x00, 0x40)
...
@@ -197,11 +197,10 @@ abstract contract CrossDomainMessenger is
...
@@ -197,11 +197,10 @@ abstract contract CrossDomainMessenger is
mstore(0x00, 0x08c379a0)
mstore(0x00, 0x08c379a0)
// Store pointer to the string in scratch space
// Store pointer to the string in scratch space
mstore(0x20, 0x20)
mstore(0x20, 0x20)
// Zero-out the free memory pointer (prevents corruption of the length word)
// Add the length of the "ReentrancyGuard: reentrant call" string (31 bytes)
mstore(0x40, 0x00)
mstore(0x40, 0x1f)
// 31 length + "ReentrancyGuard: reentrant call"
// Store "ReentrancyGuard: reentrant call" in the zero slot (plus a 0 byte for padding)
// Note that we do not need to zero-out the memory at 0x60, as it is the zero slot.
mstore(0x60, 0x5265656e7472616e637947756172643a207265656e7472616e742063616c6c00)
mstore(0x5f, 0x1f5265656e7472616e637947756172643a207265656e7472616e742063616c6c)
// Revert with 'Error("ReentrancyGuard: reentrant call")'
// Revert with 'Error("ReentrancyGuard: reentrant call")'
revert(0x1c, 0x64)
revert(0x1c, 0x64)
}
}
...
...
packages/contracts-bedrock/tasks/check-l2.ts
View file @
441bb2c0
...
@@ -242,7 +242,7 @@ const check = {
...
@@ -242,7 +242,7 @@ const check = {
signer
signer
)
)
await
assertSemver
(
L2CrossDomainMessenger
,
'
L2CrossDomainMessenger
'
)
await
assertSemver
(
L2CrossDomainMessenger
,
'
L2CrossDomainMessenger
'
,
'
1.1.0
'
)
const
xDomainMessageSenderSlot
=
await
signer
.
provider
.
getStorageAt
(
const
xDomainMessageSenderSlot
=
await
signer
.
provider
.
getStorageAt
(
predeploys
.
L2CrossDomainMessenger
,
predeploys
.
L2CrossDomainMessenger
,
...
...
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