Skip to content

Commit

Permalink
chore: use encode instead for brevity
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed Jan 17, 2024
1 parent 80d49d6 commit 8af75a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AvailBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ contract AvailBridge is
_checkDataRoot(input);
// leaf must be keccak(blob)
// we don't need to check that the leaf is non-zero because we hash the pre-image here
return input.leafProof.verify(input.blobRoot, input.leafIndex, keccak256(abi.encodePacked(input.leaf)));
return input.leafProof.verify(input.blobRoot, input.leafIndex, keccak256(abi.encode(input.leaf)));
}

/**
Expand Down

0 comments on commit 8af75a5

Please sign in to comment.