Skip to content

Commit

Permalink
contracts-bedrock: fix CrossL2Inbox.t.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfuturistic committed Mar 22, 2024
1 parent 5862234 commit 845992b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/contracts-bedrock/test/L2/CrossL2Inbox.t.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-ICrossL2Inbox.Identifier: MIT
pragma solidity 0.8.24;

// Testing utilities
Expand All @@ -11,14 +11,14 @@ import { Predeploys } from "src/libraries/Predeploys.sol";
// Target contracts
import { L1Block } from "src/L2/L1Block.sol";
import { CrossL2Inbox, NotEntered } from "src/L2/CrossL2Inbox.sol";
import { Identifier } from "src/L2/ICrossL2Inbox.sol";
import { ICrossL2Inbox } from "src/L2/ICrossL2Inbox.sol";

contract CrossL2InboxTest is Test {
/// @dev CrossL2Inbox contract instance.
CrossL2Inbox crossL2Inbox;

/// @dev Sample Identifier.
Identifier sampleId = Identifier({
/// @dev Sample ICrossL2Inbox.Identifier.
ICrossL2Inbox.Identifier sampleId = ICrossL2Inbox.Identifier({
origin: address(0),
blocknumber: 0,
logIndex: 0,
Expand All @@ -34,7 +34,7 @@ contract CrossL2InboxTest is Test {
/// @dev Tests that `executeMessage` succeeds when called with valid parameters.
function testFuzz_executeMessage_succeeds(
bytes calldata _msg,
Identifier calldata _id,
ICrossL2Inbox.Identifier calldata _id,
address _target,
uint256 _value
)
Expand Down Expand Up @@ -67,7 +67,7 @@ contract CrossL2InboxTest is Test {

/// @dev Tests that `executeMessage` fails when called with an identifier with an invalid timestamp.
function test_executeMessage_invalidTimestamp_fails() external {
Identifier memory id = sampleId;
ICrossL2Inbox.Identifier memory id = sampleId;
id.timestamp = block.timestamp + 1;

vm.prank(tx.origin);
Expand Down

0 comments on commit 845992b

Please sign in to comment.