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
79ca7e1a
Unverified
Commit
79ca7e1a
authored
Jul 13, 2022
by
Maurelian
Committed by
GitHub
Jul 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(ctb): Rename _isSystemMessageSender to _isOtherMessenger (#3022)
parent
921653f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
L1CrossDomainMessenger.sol
...contracts-bedrock/contracts/L1/L1CrossDomainMessenger.sol
+1
-1
L2CrossDomainMessenger.sol
...contracts-bedrock/contracts/L2/L2CrossDomainMessenger.sol
+1
-1
CrossDomainMessenger.sol
...acts-bedrock/contracts/universal/CrossDomainMessenger.sol
+2
-2
No files found.
packages/contracts-bedrock/contracts/L1/L1CrossDomainMessenger.sol
View file @
79ca7e1a
...
@@ -46,7 +46,7 @@ contract L1CrossDomainMessenger is CrossDomainMessenger, Semver {
...
@@ -46,7 +46,7 @@ contract L1CrossDomainMessenger is CrossDomainMessenger, Semver {
*
*
* @return True if the message was sent from the messenger, false otherwise.
* @return True if the message was sent from the messenger, false otherwise.
*/
*/
function _is
SystemMessageSend
er() internal view override returns (bool) {
function _is
OtherMesseng
er() internal view override returns (bool) {
return msg.sender == address(portal) && portal.l2Sender() == otherMessenger;
return msg.sender == address(portal) && portal.l2Sender() == otherMessenger;
}
}
...
...
packages/contracts-bedrock/contracts/L2/L2CrossDomainMessenger.sol
View file @
79ca7e1a
...
@@ -52,7 +52,7 @@ contract L2CrossDomainMessenger is CrossDomainMessenger, Semver {
...
@@ -52,7 +52,7 @@ contract L2CrossDomainMessenger is CrossDomainMessenger, Semver {
*
*
* @return True if the message sender is the L1CrossDomainMessenger on L1.
* @return True if the message sender is the L1CrossDomainMessenger on L1.
*/
*/
function _is
SystemMessageSend
er() internal view override returns (bool) {
function _is
OtherMesseng
er() internal view override returns (bool) {
return AddressAliasHelper.undoL1ToL2Alias(msg.sender) == otherMessenger;
return AddressAliasHelper.undoL1ToL2Alias(msg.sender) == otherMessenger;
}
}
...
...
packages/contracts-bedrock/contracts/universal/CrossDomainMessenger.sol
View file @
79ca7e1a
...
@@ -274,7 +274,7 @@ abstract contract CrossDomainMessenger is
...
@@ -274,7 +274,7 @@ abstract contract CrossDomainMessenger is
_message
_message
);
);
if (_is
SystemMessageSend
er()) {
if (_is
OtherMesseng
er()) {
// Should never happen.
// Should never happen.
require(msg.value == _value, "Mismatched message value.");
require(msg.value == _value, "Mismatched message value.");
} else {
} else {
...
@@ -349,7 +349,7 @@ abstract contract CrossDomainMessenger is
...
@@ -349,7 +349,7 @@ abstract contract CrossDomainMessenger is
* contracts because the logic for this depends on the network where the messenger is
* contracts because the logic for this depends on the network where the messenger is
* being deployed.
* being deployed.
*/
*/
function _is
SystemMessageSend
er() internal view virtual returns (bool);
function _is
OtherMesseng
er() internal view virtual returns (bool);
/**
/**
* @notice Sends a low-level message to the other messenger. Needs to be implemented by child
* @notice Sends a low-level message to the other messenger. Needs to be implemented by child
...
...
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