From ec56dbbb479674252af67ddfcb754c16446bda35 Mon Sep 17 00:00:00 2001 From: benesjan Date: Fri, 26 Jan 2024 13:03:52 +0000 Subject: [PATCH] fixed stale naming --- l1-contracts/test/decoders/Decoder.t.sol | 6 +++--- .../{HeaderDecoderHelper.sol => HeaderLibHelper.sol} | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename l1-contracts/test/decoders/helpers/{HeaderDecoderHelper.sol => HeaderLibHelper.sol} (92%) diff --git a/l1-contracts/test/decoders/Decoder.t.sol b/l1-contracts/test/decoders/Decoder.t.sol index e11586d30b43..cde3eee14b38 100644 --- a/l1-contracts/test/decoders/Decoder.t.sol +++ b/l1-contracts/test/decoders/Decoder.t.sol @@ -8,7 +8,7 @@ import {Hash} from "../../src/core/libraries/Hash.sol"; import {DataStructures} from "../../src/core/libraries/DataStructures.sol"; import {DecoderHelper} from "./helpers/DecoderHelper.sol"; -import {HeaderDecoderHelper} from "./helpers/HeaderDecoderHelper.sol"; +import {HeaderLibHelper} from "./helpers/HeaderLibHelper.sol"; import {MessagesDecoderHelper} from "./helpers/MessagesDecoderHelper.sol"; import {TxsDecoderHelper} from "./helpers/TxsDecoderHelper.sol"; import {HeaderLib} from "../../src/core/libraries/HeaderLib.sol"; @@ -27,13 +27,13 @@ import {AvailabilityOracle} from "../../src/core/availability_oracle/Availabilit */ contract DecoderTest is DecoderBase { DecoderHelper internal helper; - HeaderDecoderHelper internal headerHelper; + HeaderLibHelper internal headerHelper; MessagesDecoderHelper internal messagesHelper; TxsDecoderHelper internal txsHelper; function setUp() public virtual { helper = new DecoderHelper(); - headerHelper = new HeaderDecoderHelper(); + headerHelper = new HeaderLibHelper(); messagesHelper = new MessagesDecoderHelper(); txsHelper = new TxsDecoderHelper(); } diff --git a/l1-contracts/test/decoders/helpers/HeaderDecoderHelper.sol b/l1-contracts/test/decoders/helpers/HeaderLibHelper.sol similarity index 92% rename from l1-contracts/test/decoders/helpers/HeaderDecoderHelper.sol rename to l1-contracts/test/decoders/helpers/HeaderLibHelper.sol index 5d78b620b2a2..7d839535a744 100644 --- a/l1-contracts/test/decoders/helpers/HeaderDecoderHelper.sol +++ b/l1-contracts/test/decoders/helpers/HeaderLibHelper.sol @@ -4,7 +4,7 @@ pragma solidity >=0.8.18; import {HeaderLib} from "../../../src/core/libraries/HeaderLib.sol"; -contract HeaderDecoderHelper { +contract HeaderLibHelper { // A wrapper used such that we get "calldata" and not memory function decode(bytes calldata _header) public pure returns (HeaderLib.Header memory) { return HeaderLib.decode(_header);