From b9be7ae90dc5aabc26295d00041ed38d60ad9b05 Mon Sep 17 00:00:00 2001 From: CodeSandwich Date: Wed, 28 Feb 2024 14:44:56 +0100 Subject: [PATCH] Upgrade forge-std to v1.7.6 (#342) --- lib/forge-std | 2 +- test/Splits.t.sol | 2 +- test/Streams.t.sol | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/forge-std b/lib/forge-std index e8a047e3..ae570fec 160000 --- a/lib/forge-std +++ b/lib/forge-std @@ -1 +1 @@ -Subproject commit e8a047e3f40f13fa37af6fe14e6e06283d9a060e +Subproject commit ae570fec082bfe1c1f45b0acca4a2b4f84d345ce diff --git a/test/Splits.t.sol b/test/Splits.t.sol index 60a8cab3..489d4b46 100644 --- a/test/Splits.t.sol +++ b/test/Splits.t.sol @@ -324,7 +324,7 @@ contract SplitsTest is Test, Splits { SplitsReceiver[_MAX_SPLITS_RECEIVERS] memory receiversRaw, uint256 receiversLengthRaw, uint256 totalWeightRaw - ) internal view returns (SplitsReceiver[] memory receivers) { + ) internal pure returns (SplitsReceiver[] memory receivers) { for (uint256 i = 0; i < receiversRaw.length; i++) { for (uint256 j = i + 1; j < receiversRaw.length; j++) { if (receiversRaw[i].accountId > receiversRaw[j].accountId) { diff --git a/test/Streams.t.sol b/test/Streams.t.sol index 09dd535e..96d68c5c 100644 --- a/test/Streams.t.sol +++ b/test/Streams.t.sol @@ -1604,7 +1604,7 @@ contract StreamsTest is Test, PseudoRandomUtils, Streams { return bound(streamingTimeRaw, 0, _cycleSecs * maxCycles); } - function sanitizeStreamsBalance(uint256 balanceRaw) internal view returns (uint128 balance) { + function sanitizeStreamsBalance(uint256 balanceRaw) internal pure returns (uint128 balance) { return uint128(bound(balanceRaw, 0, _MAX_STREAMS_BALANCE)); }