Skip to content

Commit

Permalink
Fix compiler warnings (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviggiano authored and rappie committed May 1, 2024
1 parent 8b01f7a commit c7890ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/AssertHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ abstract contract AssertHelper {
reason4
)
);
assertWithMsg(isEqual, assertMsg);
}

function assertErrorsAllowed(
Expand Down
2 changes: 1 addition & 1 deletion src/RandomHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c7890ef

Please sign in to comment.