Skip to content

deps: Bump spl-token-2022 to v12 - #166

Closed
clankmaxxing-clod wants to merge 2 commits into
solana-program:mainfrom
clankmaxxing-clod:bump-token-2022
Closed

clankmaxxing-clod wants to merge 2 commits into
solana-program:mainfrom
clankmaxxing-clod:bump-token-2022

Conversation

@clankmaxxing-clod

Copy link
Copy Markdown
Contributor

Supersedes #154, whose CI fails because the tests don't compile against v12.

Problem

spl-token-2022 v12 moved to pinocchio (solana-program/token-2022#1469), so Processor::process now takes &mut [AccountView]. It can no longer be registered with processor! in solana-program-test:

error[E0308]: mismatched types
    processor!(spl_token_2022::processor::Processor::process),
    types differ in mutability

Summary of changes

  • Includes dependabot's bump of spl-token-2022 from 11.1.0 to 12.0.0 (from build(deps): bump spl-token-2022 from 11.1.0 to 12.0.0 #154)
  • Tests now load Token-2022 from program/tests/fixtures/spl_token_2022.so, the same approach transfer-hook uses. prefer_bpf(true) is set before adding it, so the fixture is used whether or not SBF_OUT_DIR is set.
  • The fixture was built from the program@v12.0.0 tag of solana-program/token-2022 with cargo-build-sbf 4.4.0 (sha256 c3b1e851c21d1c68520e1ee841a5383931369037175f93671efed1c96027e638)

Checked locally: make format-check-program, make clippy-program, make build-sbf-program && make test-program all pass.

🤖 Generated with Claude Code

dependabot Bot and others added 2 commits November 2, 2026 08:14
Bumps [spl-token-2022](https://github.com/solana-program/token-2022) from 11.1.0 to 12.0.0.
- [Release notes](https://github.com/solana-program/token-2022/releases)
- [Commits](https://github.com/solana-program/token-2022/compare/program@v11.1.0...program@v12.0.0)

---
updated-dependencies:
- dependency-name: spl-token-2022
  dependency-version: 12.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
spl-token-2022 v12 moved to pinocchio, so its processor takes
`&mut [AccountView]` and can no longer be registered as a native builtin
with `processor!`. Load the program from a fixture instead, built from the
program@v12.0.0 tag with cargo-build-sbf, matching how transfer-hook tests
load Token-2022.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@clankmaxxing-clod

Copy link
Copy Markdown
Contributor Author

Closing in favor of switching to spl-token-2022-interface.

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.

1 participant