Skip to content

Commit

Permalink
👷🏻 🪲 Fix out-of-bounds error
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyrharper committed Nov 22, 2023
1 parent 8761f57 commit 7928df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/ConditionalOrderHashLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ library ConditionalOrderHashLib {

// 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);

Check warning on line 55 in src/libraries/ConditionalOrderHashLib.sol

View check run for this annotation

Codecov / codecov/patch

src/libraries/ConditionalOrderHashLib.sol#L55

Added line #L55 was not covered by tests
for (uint256 i = 0; i < co.conditions.length; i++) {
hashedConditions[i] = keccak256(co.conditions[i]);
}
Expand Down

0 comments on commit 7928df5

Please sign in to comment.