Skip to content

Conversation

@rajgoesout
Copy link

Problem

SIMD‑0296 raises the transaction byte limit to 4096, but the instruction count cap stays at 64.
Kit currently enforces size, not instruction count, so transactions could exceed 64 instructions once the size limit increases.

We need to enforce the 64‑instruction limit when building/compiling messages and when planning transactions.

Summary of Changes

  • add instruction-limit types/constants and new error code/message/context
  • enforce limit in message append/prepend, compilation, and instruction planning
  • propagate instruction-limit typing through transactions, signers, and react
  • add unit/typetests for message/transaction limits and sendable checks

Closes #1102

- add instruction-limit types/constants and new error code/message/context
- enforce limit in message append/prepend, compilation, and instruction planning
- propagate instruction-limit typing through transactions, signers, and react
- add unit/typetests for message/transaction limits and sendable checks

Closes anza-xyz#1102
@changeset-bot
Copy link

changeset-bot bot commented Dec 29, 2025

🦋 Changeset detected

Latest commit: 12dcf84

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 43 packages
Name Type
@solana/transaction-messages Major
@solana/transactions Major
@solana/signers Major
@solana/react Major
@solana/instruction-plans Major
@solana/errors Major
@solana/kit Major
@solana/programs Major
@solana/rpc-api Major
@solana/rpc-subscriptions-api Major
@solana/transaction-confirmation Major
@solana/compat Major
@solana/rpc-graphql Major
@solana/accounts Major
@solana/addresses Major
@solana/assertions Major
@solana/codecs-core Major
@solana/codecs-data-structures Major
@solana/codecs-numbers Major
@solana/codecs-strings Major
@solana/instructions Major
@solana/keys Major
@solana/offchain-messages Major
@solana/options Major
@solana/rpc-spec Major
@solana/rpc-subscriptions-channel-websocket Major
@solana/rpc-subscriptions-spec Major
@solana/rpc-subscriptions Major
@solana/rpc-transformers Major
@solana/rpc-transport-http Major
@solana/rpc-types Major
@solana/rpc Major
@solana/subscribable Major
@solana/sysvars Major
@solana/rpc-parsed-types Major
@solana/codecs Major
@solana/fast-stable-stringify Major
@solana/functional Major
@solana/nominal-types Major
@solana/plugin-core Major
@solana/promises Major
@solana/rpc-spec-types Major
@solana/webcrypto-ed25519-polyfill Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

Limit transactions to 64 instructions

1 participant