Skip to content

Commit bf327c7

Browse files
committed
Explicity initialise to empty bytes to fix static analysis check
1 parent 39a719c commit bf327c7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

contracts/trading/seaport/zones/immutable-signed-zone/v2/ImmutableSignedZoneV2.sol

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -568,11 +568,7 @@ contract ImmutableSignedZoneV2 is
568568
uint256 scalingFactorDenominator
569569
) internal pure returns (bytes32) {
570570
uint256 numberOfItems = receivedItems.length;
571-
// Slither has added an additional checker. Rather than update this in-production code,
572-
// disable the check for this line. The receivedItemsHash variable will be assigned a
573-
// default value, so the code works.
574-
// @slither-disable-next-line uninitialized-local
575-
bytes memory receivedItemsHash;
571+
bytes memory receivedItemsHash = new bytes(0); // Explicitly initialize to empty bytes
576572

577573
for (uint256 i; i < numberOfItems; i++) {
578574
receivedItemsHash = abi.encodePacked(

0 commit comments

Comments
 (0)