Skip to content

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

Merged
acheroncrypto merged 3 commits into
otter-sec: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 into
otter-sec: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

vercel Bot commented May 30, 2025

Copy link
Copy Markdown

@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

vercel Bot commented May 30, 2025

Copy link
Copy Markdown

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 otter-sec:master May 30, 2025
2 of 3 checks passed
WilfredAlmeida pushed a commit to KartikSoneji/anchor that referenced this pull request Oct 22, 2025
Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Mar 25, 2026
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