add instr sol transfer and cufee
This commit is contained in:
@@ -35,7 +35,7 @@ func TransferParser(result *RawTx, instruction Instruction, offset [2]uint, tx *
|
|||||||
to := result.accountList[instruction.Accounts[1]]
|
to := result.accountList[instruction.Accounts[1]]
|
||||||
|
|
||||||
if offset[1] == 0 {
|
if offset[1] == 0 {
|
||||||
tx.Transfer = append(tx.Transfer, SolTransfer{
|
tx.SolTransfer = append(tx.SolTransfer, SolTransfer{
|
||||||
From: from,
|
From: from,
|
||||||
To: to,
|
To: to,
|
||||||
Amount: decimal.NewFromInt(int64(lamports)), // solana decimals
|
Amount: decimal.NewFromInt(int64(lamports)), // solana decimals
|
||||||
|
|||||||
Reference in New Issue
Block a user