From 6a6fc7e9c2a45a23b3452d02e2ab1126fef70d23 Mon Sep 17 00:00:00 2001 From: keating Date: Tue, 19 Mar 2024 13:35:41 -0400 Subject: [PATCH] Fix build --- src/UniStaker.sol | 3 ++- test/UniStaker.t.sol | 13 +++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) 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"); - } }