Compare commits

...

1 Commits

Author SHA1 Message Date
thloyi
920c5ba25b fix errTx do not updte sol transfer 2026-02-27 17:41:58 +08:00

View File

@@ -34,6 +34,7 @@ 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 result.Meta.Err == nil {
if offset[1] == 0 {
tx.SolTransfer = append(tx.SolTransfer, SolTransfer{
From: from,
@@ -41,6 +42,7 @@ func TransferParser(result *RawTx, instruction Instruction, offset [2]uint, tx *
Amount: decimal.NewFromInt(int64(lamports)), // solana decimals
})
}
}
// load platform by to address
platform, ok := platformFeeAddresses[to]
if ok {