diff --git a/test/utils/ConditionalOrderSignature.sol b/test/utils/ConditionalOrderSignature.sol index 174d4f2c..a7f8f330 100644 --- a/test/utils/ConditionalOrderSignature.sol +++ b/test/utils/ConditionalOrderSignature.sol @@ -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]); }