Skip to main content
This guide helps you migrate between major Anchor versions.

Migrating to 0.32.0

IDL upload by default

anchor deploy now uploads IDL automatically:

solana-verify integration

anchor verify has been replaced:

Program type changes

Generic Program<'info> now validates executable-only:

Migrating to 0.31.0

Dynamic discriminators

Discriminators are no longer always 8 bytes:

LazyAccount

For large accounts, use LazyAccount to defer deserialization:

Migrating to 0.30.0

Token-2022 support

Use interface types for Token-2022 compatibility:

Migrating from 0.29.0

Solana 1.18+ compatibility

Update your Anchor.toml:

Account resolution

Use IDL-based account resolution:

General upgrade process

  1. Update Anchor CLI:
  2. Update dependencies in Cargo.toml:
  3. Update Anchor.toml if needed
  4. Run tests:
  5. Fix any breaking changes based on compiler errors

Version compatibility

Need help?

Changelog

Review detailed changes

Discord

Ask the community