From 216c66f7c3a06423600b99250d545c1e58e29fa3 Mon Sep 17 00:00:00 2001 From: Antonio Guilherme Ferreira Viggiano Date: Sun, 21 Apr 2024 11:09:26 -0300 Subject: [PATCH] Fix compiler warnings --- src/AssertHelper.sol | 1 + src/RandomHelper.sol | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AssertHelper.sol b/src/AssertHelper.sol index 5f74259..4e70c23 100644 --- a/src/AssertHelper.sol +++ b/src/AssertHelper.sol @@ -374,6 +374,7 @@ abstract contract AssertHelper { reason4 ) ); + assertWithMsg(isEqual, assertMsg); } function assertErrorsAllowed( diff --git a/src/RandomHelper.sol b/src/RandomHelper.sol index fed6854..1bf3502 100644 --- a/src/RandomHelper.sol +++ b/src/RandomHelper.sol @@ -4,7 +4,7 @@ pragma solidity ^0.8.0; abstract contract RandomHelper { /// @notice Shuffle an array using Fisher-Yates algorithm /// @dev Based on https://gist.github.com/scammi/602387a22e04c77beb73c0ebc0f0bc18 - function shuffleArray(uint256[] memory shuffle, uint256 entropy) internal { + function shuffleArray(uint256[] memory shuffle, uint256 entropy) internal pure { for (uint256 i = shuffle.length - 1; i > 0; i--) { uint256 swapIndex = entropy % (shuffle.length - i);