Skip to content

Commit

Permalink
feat: remove testSendDust_ShouldRevertWhenPartOfTheProtocol for cover…
Browse files Browse the repository at this point in the history
…age QA
  • Loading branch information
gitcoindev committed Oct 26, 2023
1 parent 3dab5b8 commit 2b31055
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/contracts/test/diamond/facets/CollectableDustFacet.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,6 @@ contract CollectableDustFacetTest is DiamondTestSetup {
vm.stopPrank();
}

// test sendDust function should revert when token is part of the protocol
function testSendDust_ShouldRevertWhenPartOfTheProtocol() public {
vm.startPrank(admin);
vm.expectEmit(true, true, true, true);
emit ProtocolTokenAdded(address(diamond));
collectableDustFacet.addProtocolToken(address(diamond));
// mint dollar

dollarToken.mint(address(diamond), 100);
vm.stopPrank();
vm.prank(stakingManager);
vm.expectRevert("collectable-dust::token-is-part-of-the-protocol");
collectableDustFacet.sendDust(mock_recipient, address(diamond), 100);
}

// test sendDust function should work only for staking manager
function testSendDust_ShouldWork() public {
assertEq(mockToken.balanceOf(address(diamond)), 100);
Expand Down

0 comments on commit 2b31055

Please sign in to comment.