Skip to content

Commit

Permalink
uses a production level fee for tests
Browse files Browse the repository at this point in the history
Signed-off-by: stadolf <[email protected]>
  • Loading branch information
elmariachi111 committed Nov 3, 2023
1 parent fec479e commit 2775046
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/CrowdSale.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ contract CrowdSaleTest is Test {

function testFeesAreTakenOnSettlement() public {
vm.startPrank(deployer);
crowdSale.setCurrentFeesBp(1000);
crowdSale.setCurrentFeesBp(50);
vm.stopPrank();

vm.startPrank(emitter);
Expand All @@ -519,8 +519,8 @@ contract CrowdSaleTest is Test {
crowdSale.claimResults(saleId);

//fees were taken
assertEq(biddingToken.balanceOf(emitter), 180_000 ether);
assertEq(biddingToken.balanceOf(deployer), 20_000 ether);
assertEq(biddingToken.balanceOf(emitter), 199_000 ether);
assertEq(biddingToken.balanceOf(deployer), 1_000 ether);

vm.startPrank(bidder);
crowdSale.claim(saleId, "");
Expand Down

0 comments on commit 2775046

Please sign in to comment.