forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow using era's legacy interface for testing (#384)
Co-authored-by: Stanislav Breadless <[email protected]>
- Loading branch information
1 parent
b0c1aa5
commit 06d4311
Showing
6 changed files
with
110 additions
and
13 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
l1-contracts/contracts/dev-contracts/DummyL1ERC20Bridge.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity 0.8.24; | ||
|
||
import {L1ERC20Bridge} from "../bridge/L1ERC20Bridge.sol"; | ||
import {IL1SharedBridge} from "../bridge/interfaces/IL1SharedBridge.sol"; | ||
|
||
contract DummyL1ERC20Bridge is L1ERC20Bridge { | ||
constructor(IL1SharedBridge _l1SharedBridge) L1ERC20Bridge(_l1SharedBridge) {} | ||
|
||
function setValues(address _l2Bridge, address _l2TokenBeacon, bytes32 _l2TokenProxyBytecodeHash) external { | ||
l2Bridge = _l2Bridge; | ||
l2TokenBeacon = _l2TokenBeacon; | ||
l2TokenProxyBytecodeHash = _l2TokenProxyBytecodeHash; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"compilerOptions": { | ||
"types": ["node", "mocha"], | ||
"downlevelIteration": true | ||
"downlevelIteration": true, | ||
"resolveJsonModule": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters