Skip to content

Commit

Permalink
style: prettier formatting update
Browse files Browse the repository at this point in the history
  • Loading branch information
drichar committed Jan 25, 2024
1 parent aa95a8c commit c7429ea
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/clients/base/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,17 @@ abstract class BaseClient {

groupTransactionsBySender(transactions: TransactionsArray) {
function groupBySender(objectArray: TxnInfo[]) {
return objectArray.reduce(function (acc, obj) {
const sender = obj.from
if (!acc[sender]) {
acc[sender] = []
}
acc[sender].push(obj)
return acc
}, {} as Record<string, Array<TxnInfo>>)
return objectArray.reduce(
function (acc, obj) {
const sender = obj.from
if (!acc[sender]) {
acc[sender] = []
}
acc[sender].push(obj)
return acc
},
{} as Record<string, Array<TxnInfo>>
)
}

const decodedGroup = transactions.reduce((acc: TxnInfo[], [type, txn], index) => {
Expand Down

0 comments on commit c7429ea

Please sign in to comment.