Skip to content

Commit 7ca4bd1

Browse files
authored
Merge pull request #136 from Merit-Systems/shafu/TRST-R-4
TRST-R-4: Set account.hasDistributions to true in distributeFromRepo
2 parents 1425627 + 0e98e4a commit 7ca4bd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Escrow.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ contract Escrow is Owned, IEscrow {
225225
require(_distributions.length > 0, Errors.EMPTY_ARRAY);
226226
require(_distributions.length <= batchLimit, Errors.BATCH_LIMIT_EXCEEDED);
227227

228-
Account storage account = accounts[repoId][instanceId];
228+
Account storage account = accounts[repoId][instanceId];
229+
account.hasDistributions = true;
229230

230231
distributionIds = new uint[](_distributions.length);
231232
uint batchId = batchCount++;
@@ -244,7 +245,6 @@ contract Escrow is Owned, IEscrow {
244245
repoId: repoId,
245246
instanceId: instanceId
246247
});
247-
account.hasDistributions = true;
248248

249249
emit DistributedFromRepo(
250250
batchId,

0 commit comments

Comments
 (0)