From c6ccb8c9895518628063d23f7ea5919f6ae660c7 Mon Sep 17 00:00:00 2001 From: gretzke Date: Tue, 2 Jul 2024 03:42:17 +0200 Subject: [PATCH] remove test helper --- .forge-snapshots/Increment counter number.snap | 2 +- .forge-snapshots/Set counter number.snap | 2 +- test/Counter.t.sol | 5 ++--- test/util/TestHelpers.t.sol | 13 ------------- 4 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 test/util/TestHelpers.t.sol diff --git a/.forge-snapshots/Increment counter number.snap b/.forge-snapshots/Increment counter number.snap index 562a61b..64cea38 100644 --- a/.forge-snapshots/Increment counter number.snap +++ b/.forge-snapshots/Increment counter number.snap @@ -1 +1 @@ -26387 \ No newline at end of file +26304 \ No newline at end of file diff --git a/.forge-snapshots/Set counter number.snap b/.forge-snapshots/Set counter number.snap index 2275c24..44d33ec 100644 --- a/.forge-snapshots/Set counter number.snap +++ b/.forge-snapshots/Set counter number.snap @@ -1 +1 @@ -26602 \ No newline at end of file +26394 \ No newline at end of file diff --git a/test/Counter.t.sol b/test/Counter.t.sol index 0d79de3..084b23d 100644 --- a/test/Counter.t.sol +++ b/test/Counter.t.sol @@ -3,12 +3,11 @@ pragma solidity 0.8.26; import {GasSnapshot} from 'forge-gas-snapshot/GasSnapshot.sol'; import 'forge-std/Test.sol'; -import 'test/util/TestHelpers.t.sol'; import {Deploy} from 'script/Deploy.s.sol'; import {Counter} from 'src/Counter.sol'; -abstract contract Deployed is Test, TestHelpers { +abstract contract Deployed is Test { Counter counter; function setUp() public virtual { @@ -40,7 +39,7 @@ contract CounterTest_Deployed is Deployed, GasSnapshot { } } -contract DeploymentTest is Test, TestHelpers { +contract DeploymentTest is Test { Counter counter; function setUp() public virtual { diff --git a/test/util/TestHelpers.t.sol b/test/util/TestHelpers.t.sol deleted file mode 100644 index 934127f..0000000 --- a/test/util/TestHelpers.t.sol +++ /dev/null @@ -1,13 +0,0 @@ -// SPDX-License-Identifier: UNLICENSED -pragma solidity 0.8.26; - -import 'forge-std/Test.sol'; - -abstract contract TestHelpers is Test { - Account internal DEPLOYER; - - constructor() { - DEPLOYER = makeAccount('DEPLOYER'); - vm.setEnv('PRIVATE_KEY', vm.toString(DEPLOYER.key)); - } -}