Skip to content

Commit

Permalink
fix: change encodePacked to encode
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikelle committed Oct 30, 2024
1 parent dc00213 commit 0a9b6dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/contracts/core/PreconfManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ contract PreconfManager is
);

bytes32 txnHashAndBidder = keccak256(
abi.encodePacked(txnHash, bidderAddress)
abi.encode(txnHash, bidderAddress)
);

require(
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/core/PreconfManagerTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ contract PreconfManagerTest is Test {
openFirstCommitment(bidder, unopenedIndex1, testCommitment);

bytes32 txnHashAndBidder = keccak256(
abi.encodePacked(testCommitment.txnHash, bidder)
abi.encode(testCommitment.txnHash, bidder)
);
// Verify that the first commitment is processed
assertTrue(
Expand Down

0 comments on commit 0a9b6dd

Please sign in to comment.