Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8e49f01054 | |||
|
|
62cc64a90a |
@@ -177,8 +177,13 @@ func (tx *Tx) Parser() error {
|
||||
tx.Swaps = append(tx.Swaps, swap)
|
||||
}
|
||||
// tx.Swaps = append(tx.Swaps, swaps...)
|
||||
if ii == int(offset[0]) && j == int(offset[1]) {
|
||||
j = j + 1
|
||||
} else {
|
||||
j = int(offset[1])
|
||||
ii = int(offset[0])
|
||||
}
|
||||
|
||||
} else if p, exists := actionPrograms[innerProgramAccount]; exists {
|
||||
offset, err := p(tx, innerInstr, innersMap[i], [2]uint{uint(i), uint(j)})
|
||||
if err != nil {
|
||||
|
||||
5
rawtx.go
5
rawtx.go
@@ -326,7 +326,9 @@ func FromRpcTransactionWithMeta(tx rpc.TransactionWithMeta, blockTime *uint64, s
|
||||
}
|
||||
sTx.Meta.Fee = meta.Fee
|
||||
//sTx.Meta.InnerInstructions = meta.InnerInstructions
|
||||
|
||||
if meta.ComputeUnitsConsumed != nil {
|
||||
sTx.Meta.ComputeUnitsConsumed = *meta.ComputeUnitsConsumed
|
||||
}
|
||||
for _, innerInstr := range meta.InnerInstructions {
|
||||
var instrs []Instruction
|
||||
for _, instr := range innerInstr.Instructions {
|
||||
@@ -514,6 +516,7 @@ func intSliceFromUint16Slice(in []uint16) []int {
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
func getAtaIdxByOwner(result *RawTx, owner solana.PublicKey, mint solana.PublicKey) (int, error) {
|
||||
var preBalance *TokenBalance
|
||||
for _, pre := range result.Meta.PreTokenBalances {
|
||||
|
||||
Reference in New Issue
Block a user