From c7890eff31d92599c0abc95e316f6b995e1676b2 Mon Sep 17 00:00:00 2001 From: Antonio Viggiano Date: Mon, 22 Apr 2024 16:02:01 -0300 Subject: [PATCH] Fix compiler warnings (#26) --- 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 f53eaf6..ba1e582 100644 --- a/src/AssertHelper.sol +++ b/src/AssertHelper.sol @@ -347,6 +347,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);