Skip to content

Commit

Permalink
✅ 🧹 Add conditions.length to hashedConditions in test utils
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyrharper committed Nov 27, 2023
1 parent c142518 commit e20490a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/utils/ConditionalOrderSignature.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract ConditionalOrderSignature {

// array of dynamic length bytes must be hashed separately
// to create an array of fixed length bytes32 hashes
bytes32[] memory hashedConditions;
bytes32[] memory hashedConditions = new bytes32[](co.conditions.length);
for (uint256 i = 0; i < co.conditions.length; i++) {
hashedConditions[i] = keccak256(co.conditions[i]);
}
Expand Down

0 comments on commit e20490a

Please sign in to comment.