From 920c5ba25bcbf1af1c70e9e1800149346a1f784d Mon Sep 17 00:00:00 2001 From: thloyi Date: Fri, 27 Feb 2026 17:41:58 +0800 Subject: [PATCH] fix errTx do not updte sol transfer --- system.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/system.go b/system.go index 06dfd7e..f3ddfc6 100644 --- a/system.go +++ b/system.go @@ -34,12 +34,14 @@ func TransferParser(result *RawTx, instruction Instruction, offset [2]uint, tx * from := result.accountList[result.Transaction.Message.Instructions[offset[0]].Accounts[0]] to := result.accountList[instruction.Accounts[1]] - if offset[1] == 0 { - tx.SolTransfer = append(tx.SolTransfer, SolTransfer{ - From: from, - To: to, - Amount: decimal.NewFromInt(int64(lamports)), // solana decimals - }) + if result.Meta.Err == nil { + if offset[1] == 0 { + tx.SolTransfer = append(tx.SolTransfer, SolTransfer{ + From: from, + To: to, + Amount: decimal.NewFromInt(int64(lamports)), // solana decimals + }) + } } // load platform by to address platform, ok := platformFeeAddresses[to]