Skip to content

Commit

Permalink
test coverage fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bxmmm1 committed Feb 5, 2025
1 parent dabb07f commit 5f1a0d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mainnet-contracts/test/unit/CarrotStaker.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ contract CarrotStakerTest is UnitTestHelper {
vm.stopPrank();
}

function test_transferFrom_reverts() public {
vm.expectRevert(ICarrotStaker.MethodNotAllowed.selector);
staker.transferFrom(alice, bob, 100 ether);
}

function testFuzz_stake(uint256 amount) public {
vm.assume(amount > 0 && amount <= 1000 ether);

Expand Down

0 comments on commit 5f1a0d7

Please sign in to comment.