diff --git a/test/Chamber.t.sol b/test/Chamber.t.sol index ccd90e8..5bd6b61 100644 --- a/test/Chamber.t.sol +++ b/test/Chamber.t.sol @@ -39,7 +39,7 @@ contract ChamberTest is Test, TestUtilities { chamber.stake(250_000 ether, 4); chamber.stake(70_000 ether, 5); - (uint8[5] memory ranksTop, uint256[5] memory stakesTop) = chamber.viewRankings(); + (uint8[5] memory ranksTop, uint256[5] memory stakesTop) = chamber.getLeaderboard(); (ranksTop, stakesTop); } @@ -81,7 +81,7 @@ contract ChamberTest is Test, TestUtilities { // Execute Proposal chamber.approveProposal(1, 1); - chamber.viewRankings(); + chamber.getLeaderboard(); } function test_Chamber_stake (uint256 amount) public { @@ -97,7 +97,7 @@ contract ChamberTest is Test, TestUtilities { assertEq(totalStakeForNft, amount); vm.stopPrank(); - chamber.viewRankings(); + chamber.getLeaderboard(); } @@ -106,7 +106,7 @@ contract ChamberTest is Test, TestUtilities { mERC20.approve(address(chamber), 1_000 ether); chamber.stake(1_000 ether, 1); chamber.unstake(1_000 ether, 1); - chamber.viewRankings(); + chamber.getLeaderboard(); } function test_Chamber_stakeUnchanged() public { @@ -133,7 +133,7 @@ contract ChamberTest is Test, TestUtilities { chamber.stake(1 ether, 2); chamber.stake(1 ether, 7); - chamber.viewRankings(); + chamber.getLeaderboard(); } function test_Chamber_unstake (uint256 amount) public { @@ -155,7 +155,7 @@ contract ChamberTest is Test, TestUtilities { uint newTotalStakeForNft = chamber.totalStake(6); assertEq(newTotalStakeForNft, 0); vm.stopPrank(); - chamber.viewRankings(); + chamber.getLeaderboard(); } function test_Chamber_ethTransfer (uint256 amount) public { diff --git a/test/lifecycle/ProposalCycle.t.sol b/test/lifecycle/ProposalCycle.t.sol index 6f412f5..399bfa3 100644 --- a/test/lifecycle/ProposalCycle.t.sol +++ b/test/lifecycle/ProposalCycle.t.sol @@ -58,7 +58,7 @@ contract ProposalCycleTest is Test { function helperLogger() public { // for logging out the leaderboard - (uint8[5] memory ranksTop, uint256[5] memory stakesTop) = chamber.viewRankings(); + (uint8[5] memory ranksTop, uint256[5] memory stakesTop) = chamber.getLeaderboard(); emit Log(ranksTop, stakesTop); } @@ -171,7 +171,7 @@ contract ProposalCycleTest is Test { assertTrue(state == IChamber.State.Initialized); // 4. nft holder should not be able to approve if not a leader - chamber.viewRankings(); + chamber.getLeaderboard(); vm.startPrank(blackbeard); vm.expectRevert(); chamber.approveProposal(1, 7); diff --git a/test/performance/ChamberPerf.t.sol b/test/performance/ChamberPerf.t.sol index bd15e87..d59d44d 100644 --- a/test/performance/ChamberPerf.t.sol +++ b/test/performance/ChamberPerf.t.sol @@ -21,7 +21,7 @@ contract ChamberPerfTest is Test { address jack = address(4); address danny = address(5); address shifty = address(6); - address blackbeard = address(7); + address blackbeard = address(7); address[7] lorians = [bones,coconut,hurricane,jack,danny,shifty,blackbeard];