Skip to content

Commit

Permalink
fix: zero fee
Browse files Browse the repository at this point in the history
no fee is also a fee, don't use nil or it will panic
  • Loading branch information
Candinya committed May 30, 2024
1 parent 3e4f66f commit 4c3c0d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/service/indexer/l2/indexer_billing.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func (s *server) indexBillingTokensWithdrawnLog(ctx context.Context, header *typ

billingRecord := schema.BillingRecordWithdrawal{
BillingRecordBase: schema.BillingRecordParseBase(s.chainID.Uint64(), header, transaction, receipt, billingTokensWithdrawnEvent.User, billingTokensWithdrawnEvent.Amount),
Fee: big.NewInt(0),
}

if err := databaseTransaction.SaveBillingRecordWithdrawal(ctx, &billingRecord); err != nil {
Expand Down

0 comments on commit 4c3c0d6

Please sign in to comment.