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
2eeb5dd5
Commit
2eeb5dd5
authored
Aug 02, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lint: fix
parent
2e3534ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
L1StandardBridge.sol
packages/contracts-bedrock/src/L1/L1StandardBridge.sol
+3
-7
L2StandardBridge.sol
packages/contracts-bedrock/src/L2/L2StandardBridge.sol
+1
-4
No files found.
packages/contracts-bedrock/src/L1/L1StandardBridge.sol
View file @
2eeb5dd5
...
...
@@ -83,9 +83,7 @@ contract L1StandardBridge is StandardBridge, Semver {
Semver(1, 2, 0)
StandardBridge(StandardBridge(payable(Predeploys.L2_STANDARD_BRIDGE)))
{
initialize({
_messenger: CrossDomainMessenger(address(0))
});
initialize({ _messenger: CrossDomainMessenger(address(0)) });
}
/// @notice Storage slot 0 holds a legacy value on upgraded networks. It is an empty
...
...
@@ -102,10 +100,8 @@ contract L1StandardBridge is StandardBridge, Semver {
/// @notice Initializer
/// The fix modifier should be removed during the next contract upgrade.
function initialize(CrossDomainMessenger _messenger) public clearLegacySlot() reinitializer(2) {
__StandardBridge_init({
_messenger: _messenger
});
function initialize(CrossDomainMessenger _messenger) public clearLegacySlot reinitializer(2) {
__StandardBridge_init({ _messenger: _messenger });
}
/// @notice Allows EOAs to bridge ETH by sending directly to the bridge.
...
...
packages/contracts-bedrock/src/L2/L2StandardBridge.sol
View file @
2eeb5dd5
...
...
@@ -54,10 +54,7 @@ contract L2StandardBridge is StandardBridge, Semver {
/// @custom:semver 1.2.0
/// @notice Constructs the L2StandardBridge contract.
/// @param _otherBridge Address of the L1StandardBridge.
constructor(StandardBridge _otherBridge)
Semver(1, 2, 0)
StandardBridge(_otherBridge)
{
constructor(StandardBridge _otherBridge) Semver(1, 2, 0) StandardBridge(_otherBridge) {
initialize();
}
...
...
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