diff --git a/src/UniStaker.sol b/src/UniStaker.sol index ae9527a..b54edec 100644 --- a/src/UniStaker.sol +++ b/src/UniStaker.sol @@ -598,7 +598,8 @@ contract UniStaker is INotifiableRewardReceiver, Multicall, EIP712, Nonces { emit RewardNotified(_amount, msg.sender); } - /// @notice Allows an address to increment their nonce and therefore invalidate any pending signed actions. + /// @notice Allows an address to increment their nonce and therefore invalidate any pending signed + /// actions. function invalidateNonce() external { _useNonce(msg.sender); } diff --git a/test/UniStaker.t.sol b/test/UniStaker.t.sol index 30a424e..f2fb66a 100644 --- a/test/UniStaker.t.sol +++ b/test/UniStaker.t.sol @@ -2647,7 +2647,11 @@ contract InvalidateNonce is UniStakerTest { assertEq(currentNonce, _initialNonce + 1, "Current nonce is incorrect"); } - function testFuzz_NonOwnerCannotUpdateAnotherAddressesNonce(address _caller, address _nonceOwner, uint256 _initialNonce) public { + function testFuzz_NonOwnerCannotUpdateAnotherAddressesNonce( + address _caller, + address _nonceOwner, + uint256 _initialNonce + ) public { vm.assume(_caller != address(0)); vm.assume(_initialNonce != type(uint256).max); @@ -2661,10 +2665,12 @@ contract InvalidateNonce is UniStakerTest { uint256 currentNonce = uniStaker.nonces(_nonceOwner); - assertEq(currentNonce, _initialNonce); + assertEq(currentNonce, _initialNonce); } - function testFuzz_NonceIncrementsWhenCalledMultipleTimes(address _caller, uint256, _initialNonce) public { + function testFuzz_NonceIncrementsWhenCalledMultipleTimes(address _caller, uint256 _initialNonce) + public + { vm.assume(_caller != address(0)); vm.assume(_initialNonce != type(uint256).max); @@ -2682,7 +2688,6 @@ contract InvalidateNonce is UniStakerTest { uint256 currentNonce = uniStaker.nonces(_caller); assertEq(currentNonce, _initialNonce + 2, "Current nonce is incorrect"); - } }