8000 [pull] master from solana-foundation:master by pull[bot] · Pull Request #3 · Spencerx/anchor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[pull] master from solana-foundation:master #3

New issue

Have a question about this project? Sign up for a f 8000 ree GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ The minor version will be incremented upon a breaking change and the patch versi

## [Unreleased]

-

### Features

### Fixes

- docker: Upgrade `node` to 20.18.0 LTS ([#3179](https://github.com/solana-foundation/anchor/pull/3687)).
- docker: Upgrade `node` to 20.18.0 LTS ([#3687](https://github.com/solana-foundation/anchor/pull/3687)).
- cli: Fix using deprecated commitment `recent` in migration scripts ([#3725](https://github.com/coral-xyz/anchor/pull/3725)).

### Breaking

Expand Down
26 changes: 10 additions & 16 deletions cli/src/rust_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,12 @@ const anchor = require('@coral-xyz/anchor');
const userScript = require("{script_path}");

async function main() {{
const url = "{cluster_url}";
const preflightCommitment = 'recent';
const connection = new anchor.web3.Connection(url, preflightCommitment);
const connection = new anchor.web3.Connection(
"{cluster_url}",
anchor.AnchorProvider.defaultOptions().commitment
);
const wallet = anchor.Wallet.local();

const provider = new anchor.AnchorProvider(connection, wallet, {{
preflightCommitment,
commitment: 'recent',
}});
const provider = new anchor.AnchorProvider(connection, wallet);

// Run the user's deploy script.
userScript(provider);
Expand All @@ -282,15 +279,12 @@ pub fn deploy_ts_script_host(cluster_url: &str, script_path: &str) -> String {
const userScript = require("{script_path}");

async function main() {{
const url = "{cluster_url}";
const preflightCommitment = 'recent';
const connection = new anchor.web3.Connection(url, preflightCommitment);
const connection = new anchor.web3.Connection(
"{cluster_url}",
anchor.AnchorProvider.defaultOptions().commitment
);
const wallet = anchor.Wallet.local();

const provider = new anchor.AnchorProvider(connection, wallet, {{
preflightCommitment,
commitment: 'recent',
}});
const provider = new anchor.AnchorProvider(connection, wallet);

// Run the user's deploy script.
userScript(provider);
Expand Down
Loading 3A7D
0