Skip to content

Commit

Permalink
fix: trALast condition (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCardinalError authored Oct 20, 2023
1 parent 02f6775 commit 9ea2e30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Redistribution.sol
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ contract Redistribution is AccessControl, Pausable {
// 4 = Inclusion proof failed for transformed address of element
error RandomElementCheckFailed(); // Random element order check failed
error LastElementCheckFailed(); // Last element order check failed
error ReserveCheckFailed(); // Reserve size estimation check failed
error ReserveCheckFailed(bytes32 trALast); // Reserve size estimation check failed

// ----------------------------- CONSTRUCTOR ------------------------------

Expand Down Expand Up @@ -1097,7 +1097,7 @@ contract Redistribution is AccessControl, Pausable {

function estimateSize(bytes32 trALast) internal pure {
if (uint256(trALast) >= SAMPLE_MAX_VALUE) {
revert ReserveCheckFailed();
revert ReserveCheckFailed(trALast);
}
}
}

0 comments on commit 9ea2e30

Please sign in to comment.