Skip to content

Commit

Permalink
contracts-bedrock: use Test instead of CommonTest with CrossL2Inbox.t…
Browse files Browse the repository at this point in the history
….sol
  • Loading branch information
0xfuturistic committed Mar 22, 2024
1 parent c7e303c commit d5a6ffe
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/contracts-bedrock/test/L2/CrossL2Inbox.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@
pragma solidity 0.8.24;

// Testing utilities
import { CommonTest } from "test/setup/CommonTest.sol";
import { Test } from "forge-std/Test.sol";
import { EIP1967Helper } from "test/mocks/EIP1967Helper.sol";
import { Reverter, ConfigurableCaller } from "test/mocks/Callers.sol";
import { ICrossL2Inbox } from "src/L2/ICrossL2Inbox.sol";

// Libraries
import { SafeCall } from "src/libraries/SafeCall.sol";

import { L1Block } from "src/L2/L1Block.sol";
import { CrossL2Inbox } from "src/L2/CrossL2Inbox.sol";
import { ICrossL2Inbox } from "src/L2/ICrossL2Inbox.sol";

contract CrossL2InboxTest is CommonTest {
contract CrossL2InboxTest is Test {
ICrossL2Inbox.Identifier sampleId = ICrossL2Inbox.Identifier({
origin: address(0),
blocknumber: 0,
Expand All @@ -25,6 +23,12 @@ contract CrossL2InboxTest is CommonTest {

bytes sampleMsg = hex"1234";

ICrossL2Inbox crossL2Inbox;

function setUp() public {
crossL2Inbox = ICrossL2Inbox(new CrossL2Inbox());
}

function testFuzz_executeMessage_succeeds(
bytes calldata _msg,
ICrossL2Inbox.Identifier calldata _id,
Expand Down

0 comments on commit d5a6ffe

Please sign in to comment.