From 940b9a11f915dce37df94975562efa22e3348358 Mon Sep 17 00:00:00 2001 From: Flocqst Date: Wed, 5 Jun 2024 18:31:40 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20setup=20KSXVault=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/KSXVault.t.sol | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/test/KSXVault.t.sol b/test/KSXVault.t.sol index 4fa4ea5..dcbbe6e 100644 --- a/test/KSXVault.t.sol +++ b/test/KSXVault.t.sol @@ -1,14 +1,20 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.25; -import {Bootstrap} from "test/utils/Bootstrap.sol"; +import {Test} from "forge-std/Test.sol"; +import { KSXVault } from "../src/KSXVault.sol"; +import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; -contract KSXVaultTest is Bootstrap { +contract KSXVaultTest is Test { function setUp() public { - /// @dev uncomment the following line to test in a forked environment - /// at a specific block number - // vm.rollFork(NETWORK_BLOCK_NUMBER); - initializeOptimismGoerli(); } } + +contract MockERC20 is ERC20 { + constructor (string memory name_, string memory symbol_) ERC20(name_, symbol_) {} + + function mint(address to, uint256 amount) external { + _mint(to, amount); + } +}