From 425fa7d8bf2add337a90a8deee1a920127a3c8a3 Mon Sep 17 00:00:00 2001 From: Simon Chow Date: Wed, 28 Aug 2024 14:58:40 -0400 Subject: [PATCH] Should only use TxChangesAfter --- internal/transform/transaction.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/transform/transaction.go b/internal/transform/transaction.go index 261a8c96..904cad1f 100644 --- a/internal/transform/transaction.go +++ b/internal/transform/transaction.go @@ -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()