Skip to content

Commit 95e448d

Browse files
authored
Merge pull request #100 from Merit-Systems/shafu/distribute-from-sender
Rename distributeRepo to distributeFromRepo
2 parents 1c7cb0b + cd4a7ac commit 95e448d

File tree

8 files changed

+136
-136
lines changed

8 files changed

+136
-136
lines changed

src/Escrow.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ contract Escrow is Owned, IEscrow {
196196
/* -------------------------------------------------------------------------- */
197197
/* DISTRIBUTE REPO / SOLO */
198198
/* -------------------------------------------------------------------------- */
199-
function distributeRepo(
199+
function distributeFromRepo(
200200
uint repoId,
201201
uint accountId,
202202
DistributionParams[] calldata _distributions,
@@ -245,7 +245,7 @@ contract Escrow is Owned, IEscrow {
245245
}
246246

247247
///
248-
function distributeSolo(
248+
function distributeFromSender(
249249
DistributionParams[] calldata _distributions,
250250
bytes calldata data
251251
)
Lines changed: 61 additions & 61 deletions
Large diffs are not rendered by default.
Lines changed: 64 additions & 64 deletions
Large diffs are not rendered by default.

test/06_Claim.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ contract Claim_Test is Base_Test {
6565
});
6666

6767
vm.prank(repoAdmin);
68-
uint[] memory distributionIds = escrow.distributeRepo(REPO_ID, ACCOUNT_ID, distributions, "");
68+
uint[] memory distributionIds = escrow.distributeFromRepo(REPO_ID, ACCOUNT_ID, distributions, "");
6969
return distributionIds[0];
7070
}
7171

@@ -84,7 +84,7 @@ contract Claim_Test is Base_Test {
8484
});
8585

8686
vm.prank(payer);
87-
uint[] memory distributionIds = escrow.distributeSolo(distributions, "");
87+
uint[] memory distributionIds = escrow.distributeFromSender(distributions, "");
8888
return distributionIds[0];
8989
}
9090

test/07_ReclaimFund.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ contract ReclaimFund_Test is Base_Test {
6262
});
6363

6464
vm.prank(repoAdmin);
65-
uint[] memory distributionIds = escrow.distributeRepo(REPO_ID, ACCOUNT_ID, distributions, "");
65+
uint[] memory distributionIds = escrow.distributeFromRepo(REPO_ID, ACCOUNT_ID, distributions, "");
6666
return distributionIds[0];
6767
}
6868

test/08_ReclaimRepo.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ contract ReclaimRepo_Test is Base_Test {
6363
});
6464

6565
vm.prank(repoAdmin);
66-
uint[] memory distributionIds = escrow.distributeRepo(REPO_ID, ACCOUNT_ID, distributions, "");
66+
uint[] memory distributionIds = escrow.distributeFromRepo(REPO_ID, ACCOUNT_ID, distributions, "");
6767
return distributionIds[0];
6868
}
6969

@@ -82,7 +82,7 @@ contract ReclaimRepo_Test is Base_Test {
8282
});
8383

8484
vm.prank(soloPayer);
85-
uint[] memory distributionIds = escrow.distributeSolo(distributions, "");
85+
uint[] memory distributionIds = escrow.distributeFromSender(distributions, "");
8686
return distributionIds[0];
8787
}
8888

test/09_ReclaimSolo.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ contract ReclaimSolo_Test is Base_Test {
7575
});
7676

7777
vm.prank(payer);
78-
uint[] memory distributionIds = escrow.distributeSolo(distributions, "");
78+
uint[] memory distributionIds = escrow.distributeFromSender(distributions, "");
7979
return distributionIds[0];
8080
}
8181

@@ -91,7 +91,7 @@ contract ReclaimSolo_Test is Base_Test {
9191
});
9292

9393
vm.prank(repoAdmin);
94-
uint[] memory distributionIds = escrow.distributeRepo(REPO_ID, ACCOUNT_ID, distributions, "");
94+
uint[] memory distributionIds = escrow.distributeFromRepo(REPO_ID, ACCOUNT_ID, distributions, "");
9595
return distributionIds[0];
9696
}
9797

test/10_OnlyOwner.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ contract OnlyOwner_Test is Base_Test {
520520
});
521521

522522
vm.prank(admin);
523-
escrow.distributeRepo(repoId, accountId, distributions, "");
523+
escrow.distributeFromRepo(repoId, accountId, distributions, "");
524524
}
525525

526526
function _createSingleDistribution(address recipient, uint256 amount) internal {
@@ -536,7 +536,7 @@ contract OnlyOwner_Test is Base_Test {
536536
token: wETH
537537
});
538538

539-
escrow.distributeSolo(distributions, "");
539+
escrow.distributeFromSender(distributions, "");
540540
}
541541

542542
function _verifyDistributionFeesUnchanged(uint256 expectedFee) internal view {

0 commit comments

Comments
 (0)