Skip to content

Commit

Permalink
update loop variable declaration in transaction instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjeffro committed Dec 9, 2024
1 parent 4f2125a commit 669c442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solana/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TxParser(tx types.RawTx) *types.ParsedResult {
result = *getAccountList(&result) // get account list
result.Actions = make([]types.Action, len(tx.Transaction.Message.Instructions)) // init actions

for i, _ := range tx.Transaction.Message.Instructions {
for i := range tx.Transaction.Message.Instructions {
action, err := router(&result, i)
if err != nil {
result.Actions[i] = types.UnknownAction{
Expand Down

0 comments on commit 669c442

Please sign in to comment.