Skip to content

cli: Fix using deprecated commitment recent in migration scripts#3725

Merged
acheroncrypto merged 3 commits intosolana-foundation:masterfrom
acheroncrypto:cli-fix-using-deprecated-commitment-recent-in-migration-scripts
May 30, 2025
Merged

cli: Fix using deprecated commitment recent in migration scripts#3725
acheroncrypto merged 3 commits intosolana-foundation:masterfrom
acheroncrypto:cli-fix-using-deprecated-commitment-recent-in-migration-scripts

Conversation

@acheroncrypto
Copy link
Copy Markdown
Collaborator

Problem

As described in #3679, the generated migration script specifies recent as the commitment and preflight commitment, which is either deprecated or no longer works depending on the version used.

Summary of changes

Use Anchor's default commitment and preflight commitment in the migration script rather than specifying recent.

The last argument of AnchorProvider's constructor can be omitted after #2843, which makes it use the Anchor's default commitment (processed at the time of writing).

Fixes #3679

@vercel
Copy link
Copy Markdown

vercel bot commented May 30, 2025

@acheroncrypto is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto added cli fix Bug fix PR labels May 30, 2025
@vercel
Copy link
Copy Markdown

vercel bot commented May 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
anchor-docs ⬜️ Ignored (Inspect) Visit Preview May 30, 2025 9:49pm

@acheroncrypto acheroncrypto merged commit 0bdfa3f into solana-foundation:master May 30, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli fix Bug fix PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update commitment and preFlightCommiment on deploy script for anchor migrate

1 participant