Skip to content

Commit

Permalink
test(fork): remove unneeded vars
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivladbrg committed Aug 8, 2024
1 parent 58d9697 commit 976ddd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
8 changes: 3 additions & 5 deletions test/periphery/fork/merkle-campaign/MerkleLL.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ abstract contract MerkleLL_Fork_Test is Fork_Test {
uint256 aggregateAmount;
uint128[] amounts;
MerkleBase.ConstructorParams baseParams;
bool cancelable;
uint128 clawbackAmount;
address expectedLL;
LockupLinear.StreamLL expectedStream;
Expand All @@ -49,7 +48,6 @@ abstract contract MerkleLL_Fork_Test is Fork_Test {
bytes32 merkleRoot;
address[] recipients;
uint256 recipientCount;
bool transferable;
}

// We need the leaves as a storage variable so that we can use OpenZeppelin's {Arrays.findUpperBound}.
Expand Down Expand Up @@ -119,7 +117,7 @@ abstract contract MerkleLL_Fork_Test is Fork_Test {
merkleLL: ISablierMerkleLL(vars.expectedLL),
baseParams: vars.baseParams,
lockupLinear: lockupLinear,
cancelable: vars.cancelable,
cancelable: defaults.CANCELABLE(),
transferable: defaults.TRANSFERABLE(),
streamDurations: defaults.durations(),
aggregateAmount: vars.aggregateAmount,
Expand All @@ -129,8 +127,8 @@ abstract contract MerkleLL_Fork_Test is Fork_Test {
vars.merkleLL = merkleFactory.createMerkleLL({
baseParams: vars.baseParams,
lockupLinear: lockupLinear,
cancelable: vars.cancelable,
transferable: vars.transferable,
cancelable: defaults.CANCELABLE(),
transferable: defaults.TRANSFERABLE(),
streamDurations: defaults.durations(),
aggregateAmount: vars.aggregateAmount,
recipientCount: vars.recipientCount
Expand Down
10 changes: 4 additions & 6 deletions test/periphery/fork/merkle-campaign/MerkleLT.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ abstract contract MerkleLT_Fork_Test is Fork_Test {
uint256 aggregateAmount;
uint128[] amounts;
MerkleBase.ConstructorParams baseParams;
bool cancelable;
uint128 clawbackAmount;
address expectedLT;
LockupTranched.StreamLT expectedStream;
Expand All @@ -50,7 +49,6 @@ abstract contract MerkleLT_Fork_Test is Fork_Test {
bytes32 merkleRoot;
address[] recipients;
uint256 recipientCount;
bool transferable;
}

// We need the leaves as a storage variable so that we can use OpenZeppelin's {Arrays.findUpperBound}.
Expand Down Expand Up @@ -120,8 +118,8 @@ abstract contract MerkleLT_Fork_Test is Fork_Test {
merkleLT: ISablierMerkleLT(vars.expectedLT),
baseParams: vars.baseParams,
lockupTranched: lockupTranched,
cancelable: vars.cancelable,
transferable: vars.transferable,
cancelable: defaults.CANCELABLE(),
transferable: defaults.TRANSFERABLE(),
tranchesWithPercentages: defaults.tranchesWithPercentages(),
totalDuration: defaults.TOTAL_DURATION(),
aggregateAmount: vars.aggregateAmount,
Expand All @@ -131,8 +129,8 @@ abstract contract MerkleLT_Fork_Test is Fork_Test {
vars.merkleLT = merkleFactory.createMerkleLT({
baseParams: vars.baseParams,
lockupTranched: lockupTranched,
cancelable: vars.cancelable,
transferable: vars.transferable,
cancelable: defaults.CANCELABLE(),
transferable: defaults.TRANSFERABLE(),
tranchesWithPercentages: defaults.tranchesWithPercentages(),
aggregateAmount: vars.aggregateAmount,
recipientCount: vars.recipientCount
Expand Down

0 comments on commit 976ddd1

Please sign in to comment.