Skip to content

Commit

Permalink
Should only use TxChangesAfter
Browse files Browse the repository at this point in the history
  • Loading branch information
chowbao committed Aug 28, 2024
1 parent 2ac8ffa commit 425fa7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/transform/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ func TransformTransaction(transaction ingest.LedgerTransaction, lhe xdr.LedgerHe

meta, ok := transaction.UnsafeMeta.GetV3()
if ok {
accountBalanceStart, _ := getAccountBalanceFromLedgerEntryChanges(meta.TxChangesBefore, feeAccountAddress)
_, accountBalanceEnd := getAccountBalanceFromLedgerEntryChanges(meta.TxChangesAfter, feeAccountAddress)
accountBalanceStart, accountBalanceEnd := getAccountBalanceFromLedgerEntryChanges(meta.TxChangesAfter, feeAccountAddress)
outputResourceFeeRefund = accountBalanceEnd - accountBalanceStart
if meta.SorobanMeta != nil {
extV1, ok := meta.SorobanMeta.Ext.GetV1()
Expand Down

0 comments on commit 425fa7d

Please sign in to comment.