Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExceededMaxInstructions error message is confusing #452

Closed
kevinheavey opened this issue Mar 23, 2023 · 1 comment · Fixed by #455
Closed

ExceededMaxInstructions error message is confusing #452

kevinheavey opened this issue Mar 23, 2023 · 1 comment · Fixed by #455

Comments

@kevinheavey
Copy link

The error string for this guy is "exceeded maximum number of instructions allowed ({1}) at instruction #{0}"). When you're executing a Solana transaction, it's confusing to encounter this error because you're typically thinking of Solana transaction instructions, not BPF instructions, and it looks like you tried to submit a transaction with 200_000 instructions

@Lichtso
Copy link

Lichtso commented Apr 3, 2023

That is a good point. Also, we can probably take out the maximum number as that is reported together with the actual consumption in the program runtime anyway. Otherwise there is the additional confusion that instruction #{0} does not report the consumption but index of the instruction at which the limit was reached.

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 a pull request may close this issue.

2 participants