Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
woodenfurniture committed Apr 11, 2024
1 parent 1b5e908 commit e68ea9e
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions foundry/test/FoxStaking.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ contract FOXStakingTestRuneAddress is Test {

function setUp() public {
foxToken = new MockFOXToken();
foxStaking = new FoxStaking(address(foxToken));
address foxStakingProxy = Upgrades.deployUUPSProxy(
"FoxStaking.sol",
abi.encodeCall(FoxStaking.initialize, (address(foxToken)))
);
foxStaking = FoxStaking(foxStakingProxy);
}

function testCanSetRuneAddress() public {
Expand Down Expand Up @@ -90,8 +94,8 @@ contract FOXStakingTestOwnership is Test {
function setUp() public {
foxToken = new MockFOXToken();
address foxStakingProxy = Upgrades.deployUUPSProxy(
"FoxStaking.sol",
abi.encodeCall(FoxStaking.initialize, (address(foxToken)))
"FoxStaking.sol",
abi.encodeCall(FoxStaking.initialize, (address(foxToken)))
);
foxStaking = FoxStaking(foxStakingProxy);
}
Expand Down Expand Up @@ -128,8 +132,8 @@ contract FOXStakingTestStaking is Test {
function setUp() public {
foxToken = new MockFOXToken();
address foxStakingProxy = Upgrades.deployUUPSProxy(
"FoxStaking.sol",
abi.encodeCall(FoxStaking.initialize, (address(foxToken)))
"FoxStaking.sol",
abi.encodeCall(FoxStaking.initialize, (address(foxToken)))
);
foxStaking = FoxStaking(foxStakingProxy);
}
Expand Down Expand Up @@ -355,8 +359,8 @@ contract FOXStakingTestUnstake is Test {
function setUp() public {
foxToken = new MockFOXToken();
address foxStakingProxy = Upgrades.deployUUPSProxy(
"FoxStaking.sol",
abi.encodeCall(FoxStaking.initialize, (address(foxToken)))
"FoxStaking.sol",
abi.encodeCall(FoxStaking.initialize, (address(foxToken)))
);
foxStaking = FoxStaking(foxStakingProxy);

Expand Down Expand Up @@ -640,8 +644,8 @@ contract FOXStakingTestWithdraw is Test {
function setUp() public {
foxToken = new MockFOXToken();
address foxStakingProxy = Upgrades.deployUUPSProxy(
"FoxStaking.sol",
abi.encodeCall(FoxStaking.initialize, (address(foxToken)))
"FoxStaking.sol",
abi.encodeCall(FoxStaking.initialize, (address(foxToken)))
);
foxStaking = FoxStaking(foxStakingProxy);

Expand Down

0 comments on commit e68ea9e

Please sign in to comment.