Skip to content

Commit

Permalink
tests done
Browse files Browse the repository at this point in the history
  • Loading branch information
gab0071 committed Aug 21, 2024
1 parent 5c27a4a commit 5745f95
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/MainTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ import { Main } from "../src/Main.sol";
import { Test } from "forge-std/Test.sol";

contract MainTest is Test {
// custom errors
error Main_amountMustBeGreaterThanZero();
error Main_stakingBalanceMustBeGreaterThanZero();

event SuccessfulUnstake(address indexed user, uint256 amount);

// call it all the contract that i need
StakingToken public stakingToken;
RewardToken public rewardToken;
Expand All @@ -25,6 +19,12 @@ contract MainTest is Test {
uint256 public stakingTokenInitialSupply = 1_000_000;
uint256 public rewardTokenInitialSupply = 1_000_000;

// custom errors
error Main_amountMustBeGreaterThanZero();
error Main_stakingBalanceMustBeGreaterThanZero();

event SuccessfulUnstake(address indexed user, uint256 amount);

function setUp() public {
stakingToken = new StakingToken(stakingTokenInitialSupply);
rewardToken = new RewardToken(rewardTokenInitialSupply);
Expand Down

0 comments on commit 5745f95

Please sign in to comment.