diff --git a/CHANGELOG.md b/CHANGELOG.md index b550d14a92..0fe4a071c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ The minor version will be incremented upon a breaking change and the patch versi - cli: Display errors if toolchain override restoration fails ([#2700](https://github.com/coral-xyz/anchor/pull/2700)). - cli: Fix commit based `anchor_version` override ([#2704](https://github.com/coral-xyz/anchor/pull/2704)). - spl: Fix compilation with `shmem` feature enabled ([#2722](https://github.com/coral-xyz/anchor/pull/2722)). +- cli: Localhost default test validator address changes from `localhost` to `127.0.0.1`, NodeJS 17 IP resolution changes for IPv6 ([#2725](https://github.com/coral-xyz/anchor/pull/2725)). ### Breaking diff --git a/cli/src/lib.rs b/cli/src/lib.rs index 173425de24..6741670b82 100644 --- a/cli/src/lib.rs +++ b/cli/src/lib.rs @@ -3514,7 +3514,7 @@ fn test_validator_rpc_url(test_validator: &Option) -> String { validator: Some(validator), .. }) => format!("http://{}:{}", validator.bind_address, validator.rpc_port), - _ => "http://localhost:8899".to_string(), + _ => "http://127.0.0.1:8899".to_string(), } } diff --git a/ts/packages/anchor/src/provider.ts b/ts/packages/anchor/src/provider.ts index c0b2a58e9f..0731732ebb 100644 --- a/ts/packages/anchor/src/provider.ts +++ b/ts/packages/anchor/src/provider.ts @@ -89,7 +89,7 @@ export class AnchorProvider implements Provider { } opts = opts ?? AnchorProvider.defaultOptions(); const connection = new Connection( - url ?? "http://localhost:8899", + url ?? "http://127.0.0.1:8899", opts.preflightCommitment ); const NodeWallet = require("./nodewallet.js").default;