Skip to content

Commit 180f828

Browse files
authored
Merge pull request #2435 from AmbireTech/make-execute-balance-changes-no-op-for-zero-tasks
Update/ Make executeBalanceChanges a no-op if `balanceChangesTasks.length === 0`
2 parents a146c6e + bac25fa commit 180f828

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/controllers/activity/activity.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,8 @@ export class ActivityController extends EventEmitter implements IActivityControl
10241024
receipts?: BalanceChangesReceipt[]
10251025
}>
10261026
) {
1027+
if (balanceChangesTasks.length === 0) return
1028+
10271029
await Promise.all(
10281030
balanceChangesTasks.map(
10291031
({ accountOp, network, tokenAddrs, receiptBlockNumber, prevBlockNumber, receipts }) =>

0 commit comments

Comments
 (0)