From 237529a2b82468b561ff30076678c5d317effff7 Mon Sep 17 00:00:00 2001 From: gomes <17035424+gomesalexandre@users.noreply.github.com> Date: Tue, 9 Apr 2024 22:40:46 +0200 Subject: [PATCH] feat: make it 100% again --- foundry/test/FoxStaking.t.sol | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/foundry/test/FoxStaking.t.sol b/foundry/test/FoxStaking.t.sol index a12e564..a5edcc0 100644 --- a/foundry/test/FoxStaking.t.sol +++ b/foundry/test/FoxStaking.t.sol @@ -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);