Skip to content

Commit

Permalink
refactor: errors imports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiTimesChi committed Sep 25, 2024
1 parent e462eff commit 4796b36
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
2 changes: 0 additions & 2 deletions packages/contracts-rfq/test/FastBridgeV2.Dst.t.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {ChainIncorrect, DeadlineExceeded, TransactionRelayed} from "../contracts/libs/Errors.sol";

import {FastBridgeV2, FastBridgeV2Test, IFastBridge} from "./FastBridgeV2.t.sol";

// solhint-disable func-name-mixedcase, ordering
Expand Down
6 changes: 4 additions & 2 deletions packages/contracts-rfq/test/FastBridgeV2.Parity.t.sol
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import {FastBridgeTest, SenderIncorrect} from "./FastBridge.t.sol";
import {IFastBridgeV2Errors} from "../contracts/interfaces/IFastBridgeV2Errors.sol";

import {FastBridgeTest} from "./FastBridge.t.sol";

// solhint-disable func-name-mixedcase, ordering
contract FastBridgeV2ParityTest is FastBridgeTest {
contract FastBridgeV2ParityTest is FastBridgeTest, IFastBridgeV2Errors {
address public anotherRelayer = makeAddr("Another Relayer");

function deployFastBridge() internal virtual override returns (address) {
Expand Down
13 changes: 0 additions & 13 deletions packages/contracts-rfq/test/FastBridgeV2.Src.t.sol
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {
AmountIncorrect,
ChainIncorrect,
DisputePeriodNotPassed,
DisputePeriodPassed,
DeadlineNotExceeded,
DeadlineTooShort,
MsgValueIncorrect,
SenderIncorrect,
StatusIncorrect,
ZeroAddress
} from "../contracts/libs/Errors.sol";

import {FastBridgeV2, FastBridgeV2Test, IFastBridge} from "./FastBridgeV2.t.sol";

// solhint-disable func-name-mixedcase, ordering
Expand Down
3 changes: 2 additions & 1 deletion packages/contracts-rfq/test/FastBridgeV2.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
pragma solidity ^0.8.20;

import {IFastBridge} from "../contracts/interfaces/IFastBridge.sol";
import {IFastBridgeV2Errors} from "../contracts/interfaces/IFastBridgeV2Errors.sol";
import {FastBridgeV2} from "../contracts/FastBridgeV2.sol";

import {MockERC20} from "./MockERC20.sol";
Expand All @@ -11,7 +12,7 @@ import {Test} from "forge-std/Test.sol";
import {stdStorage, StdStorage} from "forge-std/Test.sol";

// solhint-disable no-empty-blocks, ordering
abstract contract FastBridgeV2Test is Test {
abstract contract FastBridgeV2Test is Test, IFastBridgeV2Errors {
using stdStorage for StdStorage;

uint32 public constant SRC_CHAIN_ID = 1337;
Expand Down

0 comments on commit 4796b36

Please sign in to comment.