You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: Description
The function _verifyFlowMatrix() contains if() condition that checks if:
if (3* _flow.length!= _coordinates.length) {
// Mismatch in flow and coordinates length.revertCirclesArraysLengthMismatch(_flow.length, _coordinates.length, 2);
}
However, incorrect error message is being reverted in CirclesArraysLengthMismatch(_flow.length, _coordinates.length, 2);.
_flow.length is multiplied by 3 in the if condition, but in the error message, it is only _flow.length, causing a mismatch between the logic and the revert error.
Recommendation
To fix this, the revert error message should correctly reflect the logic as follows:
if (3 * _flow.length != _coordinates.length) {
// Mismatch in flow and coordinates length.
- revert CirclesArraysLengthMismatch(_flow.length, _coordinates.length, 2);+ revert CirclesArraysLengthMismatch(3 * _flow.length, _coordinates.length, 2);
}
The text was updated successfully, but these errors were encountered:
Just to note: these errors have a uint8 code that identifies where in the code they are thrown, so that the developer can know what which data the error concerns
Github username: --
Twitter username: --
Submission hash (on-chain): 0x97175c3b5ad7714858d29433b82be58c2b204785f3f0040cf77c3a6b3b0a88e4
Severity: low
Description:
Description
The function
_verifyFlowMatrix()
containsif()
condition that checks if:However, incorrect error message is being reverted in
CirclesArraysLengthMismatch(_flow.length, _coordinates.length, 2);
._flow.length
is multiplied by 3 in the if condition, but in the error message, it is only_flow.length
, causing a mismatch between the logic and the revert error.Recommendation
To fix this, the revert error message should correctly reflect the logic as follows:
The text was updated successfully, but these errors were encountered: