feat: add tests for withdraw, fee and make it DRY

This commit is contained in:
royvardhan
2025-01-23 21:04:05 +05:30
parent 7bfd6c981c
commit 056582ca2f
8 changed files with 139 additions and 110 deletions

View File

@@ -1,10 +1,13 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity ^0.8.28;
contract Constants {
address ADMIN = address(12395012351212343412541234); //admin=us
address BOB = address(123); //bob=someone!=us
import "forge-std/Test.sol";
contract Constants is Test {
address ADMIN = makeAddr("admin"); //admin=us
address BOB = makeAddr("bob"); //bob=someone!=us
address FUND_RESCUER = makeAddr("fundRescuer");
address FEE_SETTER = makeAddr("feeSetter");
// dummy contracts
address DUMMY = address(0x1234);
address DUMMY = makeAddr("dummy");
}