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]