Skip to content

Commit

Permalink
refactor: remove keccak256 hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg committed Nov 26, 2023
1 parent 6934af4 commit 1a6c6ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 3 additions & 10 deletions src/SablierV2MerkleStreamerFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,15 @@ contract SablierV2MerkleStreamerFactory is ISablierV2MerkleStreamerFactory {
asset,
merkleRoot,
expiration,
keccak256(abi.encode(streamDurations)),
abi.encode(streamDurations),
cancelable,
transferable
)
);

// Deploy the Merkle streamer with CREATE2.
merkleStreamerLL = new SablierV2MerkleStreamerLL{salt: salt} (
initialAdmin,
lockupLinear,
asset,
merkleRoot,
expiration,
streamDurations,
cancelable,
transferable
merkleStreamerLL = new SablierV2MerkleStreamerLL{ salt: salt }(
initialAdmin, lockupLinear, asset, merkleRoot, expiration, streamDurations, cancelable, transferable
);

// Effects: append the streamer in the admin's list.
Expand Down
2 changes: 1 addition & 1 deletion test/Base.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ abstract contract Base_Test is DeployOptimized, Events, Merkle, V2CoreAssertions
asset,
merkleRoot,
expiration,
keccak256(abi.encode(defaults.durations())),
abi.encode(defaults.durations()),
defaults.CANCELABLE(),
defaults.TRANSFERABLE()
)
Expand Down

0 comments on commit 1a6c6ee

Please sign in to comment.