Skip to content

docs: MIGRATION.md does not document how to migrate from the old Error enum to AnchorKitError #545

@Haroldwonder

Description

@Haroldwonder

Problem

src/errors.rs defines a backward-compat type alias pub type Error = AnchorKitError and a comment saying 'Prefer AnchorKitError for new code'. However, docs/MIGRATION.md does not mention this change or provide guidance on updating existing code that uses the old Error type.

Location

docs/MIGRATION.md, src/errors.rs

Fix

Add a section to MIGRATION.md explaining the Error -> AnchorKitError rename, the type alias, and any breaking changes in the error API.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions