Skip to content

solana: add instructionIndex to instruction#349

Closed
tmcgroul wants to merge 2 commits intomasterfrom
instruction-index
Closed

solana: add instructionIndex to instruction#349
tmcgroul wants to merge 2 commits intomasterfrom
instruction-index

Conversation

@tmcgroul
Copy link
Copy Markdown
Contributor

No description provided.

@tmcgroul
Copy link
Copy Markdown
Contributor Author

@eldargab should innerInstructionIndex be undefined for primary instructions or -1?

@eldargab
Copy link
Copy Markdown
Contributor

eldargab commented Nov 1, 2024

I think, it should be undefined.

}

let i: Instruction = {
innerInstructionIndex: this.innerPos,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, it is better to set it directly, rather than recalculating it here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mean outside of push method? it seems that inner instructions can be created in several methods so it's hard to track them 🤷‍♂️

@tmcgroul
Copy link
Copy Markdown
Contributor Author

tmcgroul commented Feb 4, 2026

closing as there is no more demand for this

@tmcgroul tmcgroul closed this Feb 4, 2026
@tmcgroul tmcgroul deleted the instruction-index branch February 4, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants