Skip to content

Commit

Permalink
Merge pull request #339 from aura-nw/fix/account-stat-with-feegrant-m…
Browse files Browse the repository at this point in the history
…erge-staging

Fix/account stat with feegrant (staging)
  • Loading branch information
fibonacci998 authored Aug 23, 2023
2 parents 52ada55 + c9540e0 commit c6ec397
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/services/statistics/account_statistics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,9 @@ export default class AccountStatisticsService extends BullableService {
.map((event) => Object.assign({}, ...event.jsonb_agg))
.map(
(event) =>
event[EventAttribute.ATTRIBUTE_COMPOSITE_KEY.TX_FEE_PAYER] ??
event[EventAttribute.ATTRIBUTE_COMPOSITE_KEY.USE_FEEGRANT_GRANTEE]
event[
EventAttribute.ATTRIBUTE_COMPOSITE_KEY.USE_FEEGRANT_GRANTEE
] ?? event[EventAttribute.ATTRIBUTE_COMPOSITE_KEY.TX_FEE_PAYER]
)
.forEach((address) => {
if (!accountStats[address]) {
Expand Down

0 comments on commit c6ec397

Please sign in to comment.