Skip to content

Commit

Permalink
test: add L2 standard bridge interop unit tests (#13)
Browse files Browse the repository at this point in the history
* test: add L2 standard bridge interop unit tests

* fix: add tests natspec

* fix: unit tests fixes

* fix: super to legacy tests failing

* fix: mock and expect mint and burn
  • Loading branch information
agusduha authored and 0xng committed Sep 11, 2024
1 parent de86922 commit 879a31c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contracts-bedrock/src/libraries/Predeploys.sol
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ library Predeploys {
if (_addr == WETH) return "WETH";
if (_addr == L2_CROSS_DOMAIN_MESSENGER) return "L2CrossDomainMessenger";
if (_addr == GAS_PRICE_ORACLE) return "GasPriceOracle";
if (_addr == L2_STANDARD_BRIDGE) return "L2StandardBridge";
if (_addr == L2_STANDARD_BRIDGE) return "L2StandardBridgeInterop";
if (_addr == SEQUENCER_FEE_WALLET) return "SequencerFeeVault";
if (_addr == OPTIMISM_MINTABLE_ERC20_FACTORY) return "OptimismMintableERC20Factory";
if (_addr == L1_BLOCK_NUMBER) return "L1BlockNumber";
Expand Down
8 changes: 8 additions & 0 deletions packages/contracts-bedrock/test/vendor/Initializable.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,14 @@ contract Initializer_Test is Bridge_Initializer {
initCalldata: abi.encodeCall(l2StandardBridge.initialize, (l1StandardBridge))
})
);
// L2StandardBridgeInterop
contracts.push(
InitializeableContract({
target: address(l2StandardBridge),
initCalldata: abi.encodeCall(l2StandardBridge.initialize, (l1StandardBridge)),
initializedSlotVal: deploy.loadInitializedSlot("L2StandardBridgeInterop")
})
);
// L1ERC721BridgeImpl
contracts.push(
InitializeableContract({
Expand Down

0 comments on commit 879a31c

Please sign in to comment.