diff --git a/errors/src/errors/cli/cli_errors.rs b/errors/src/errors/cli/cli_errors.rs index 4214d59d75..710136e25d 100644 --- a/errors/src/errors/cli/cli_errors.rs +++ b/errors/src/errors/cli/cli_errors.rs @@ -269,7 +269,7 @@ create_messages!( failed_to_get_endpoint_from_env { args: (), msg: "Failed to get an endpoint.".to_string(), - help: Some("Either make sure you have a `.env` file in current project directory with an `ENDPOINT` variable set, or set the `--endpoint` flag when invoking the CLI command.\n Example: `ENDPOINT=https://api.explorer.aleo.org/v1` or `leo build --endpoint \"https://api.explorer.aleo.org/v1\"`.".to_string()), + help: Some("Either make sure you have a `.env` file in current project directory with an `ENDPOINT` variable set, or set the `--endpoint` flag when invoking the CLI command.\n Example: `ENDPOINT=https://api.explorer.provable.com/v1` or `leo build --endpoint \"https://api.explorer.provable.com/v1\"`.".to_string()), } @backtraced diff --git a/leo/cli/cli.rs b/leo/cli/cli.rs index f883589b36..7a78e59677 100644 --- a/leo/cli/cli.rs +++ b/leo/cli/cli.rs @@ -315,7 +315,7 @@ mod test_helpers { use std::path::Path; const NETWORK: &str = "mainnet"; - const ENDPOINT: &str = "https://api.explorer.aleo.org/v1"; + const ENDPOINT: &str = "https://api.explorer.provable.com/v1"; pub(crate) fn sample_nested_package(temp_dir: &Path) { let name = "nested"; diff --git a/leo/cli/commands/account.rs b/leo/cli/commands/account.rs index 0add9d6d9e..0934f193e6 100644 --- a/leo/cli/commands/account.rs +++ b/leo/cli/commands/account.rs @@ -53,7 +53,7 @@ pub enum Account { short = 'e', long, help = "Endpoint to retrieve network state from.", - default_value = "https://api.explorer.aleo.org/v1" + default_value = "https://api.explorer.provable.com/v1" )] endpoint: String, }, @@ -73,7 +73,7 @@ pub enum Account { short = 'e', long, help = "Endpoint to retrieve network state from.", - default_value = "https://api.explorer.aleo.org/v1" + default_value = "https://api.explorer.provable.com/v1" )] endpoint: String, }, diff --git a/leo/cli/commands/example.rs b/leo/cli/commands/example.rs index 37d66063a6..8885023a0f 100644 --- a/leo/cli/commands/example.rs +++ b/leo/cli/commands/example.rs @@ -29,7 +29,7 @@ pub struct Example { short = 'e', long, help = "Endpoint to retrieve network state from.", - default_value = "https://api.explorer.aleo.org/v1" + default_value = "https://api.explorer.provable.com/v1" )] pub(crate) endpoint: String, } diff --git a/leo/cli/commands/new.rs b/leo/cli/commands/new.rs index 647238b406..a1067c361d 100644 --- a/leo/cli/commands/new.rs +++ b/leo/cli/commands/new.rs @@ -30,7 +30,7 @@ pub struct New { short = 'e', long, help = "Endpoint to retrieve network state from.", - default_value = "https://api.explorer.aleo.org/v1" + default_value = "https://api.explorer.provable.com/v1" )] pub(crate) endpoint: String, } diff --git a/leo/cli/commands/query/mod.rs b/leo/cli/commands/query/mod.rs index a3af314840..a4445f765d 100644 --- a/leo/cli/commands/query/mod.rs +++ b/leo/cli/commands/query/mod.rs @@ -99,7 +99,7 @@ fn handle_query( QueryCommands::Stateroot { command } => (None, command.apply(context, ())?), QueryCommands::Committee { command } => (None, command.apply(context, ())?), QueryCommands::Mempool { command } => { - if endpoint == "https://api.explorer.aleo.org/v1" { + if endpoint == "https://api.explorer.provable.com/v1" { tracing::warn!( "⚠️ `leo query mempool` is only valid when using a custom endpoint. Specify one using `--endpoint`." ); @@ -107,7 +107,7 @@ fn handle_query( (None, command.apply(context, ())?) } QueryCommands::Peers { command } => { - if endpoint == "https://api.explorer.aleo.org/v1" { + if endpoint == "https://api.explorer.provable.com/v1" { tracing::warn!( "⚠️ `leo query peers` is only valid when using a custom endpoint. Specify one using `--endpoint`." );