Skip to content

Commit

Permalink
feat: make it 100% again
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre committed Apr 9, 2024
1 parent 0649f56 commit 237529a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions foundry/test/FoxStaking.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ contract FOXStakingTestRuneAddress is Test {
vm.stopPrank();
}

function testCannotSetInvalidLengthRuneAddress() public {
vm.startPrank(user);

string memory invalidLengthRuneAddress = "thor1234";

vm.expectRevert("Rune address must be 43 characters");
foxStaking.setRuneAddress(invalidLengthRuneAddress);

vm.stopPrank();
}

function cannotStakeWithEmptyRuneAddress() public {
vm.startPrank(user);

Expand Down

0 comments on commit 237529a

Please sign in to comment.