Skip to content

Commit

Permalink
deploy: c1900d6
Browse files Browse the repository at this point in the history
  • Loading branch information
d0cd committed Sep 10, 2024
1 parent e543bdf commit 62be0c4
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/leo_errors/errors/cli/cli_errors.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
failed_to_get_endpoint_from_env {
args: (),
msg: <span class="string">"Failed to get an endpoint."</span>.to_string(),
help: <span class="prelude-val">Some</span>(<span class="string">"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\"`."</span>.to_string()),
help: <span class="prelude-val">Some</span>(<span class="string">"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\"`."</span>.to_string()),
}

@backtraced
Expand Down
2 changes: 1 addition & 1 deletion src/leo_lang/cli/cli.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@
<span class="kw">use </span>std::path::Path;

<span class="kw">const </span>NETWORK: <span class="kw-2">&amp;</span>str = <span class="string">"mainnet"</span>;
<span class="kw">const </span>ENDPOINT: <span class="kw-2">&amp;</span>str = <span class="string">"https://api.explorer.aleo.org/v1"</span>;
<span class="kw">const </span>ENDPOINT: <span class="kw-2">&amp;</span>str = <span class="string">"https://api.explorer.provable.com/v1"</span>;

<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">fn </span>sample_nested_package(temp_dir: <span class="kw-2">&amp;</span>Path) {
<span class="kw">let </span>name = <span class="string">"nested"</span>;
Expand Down
4 changes: 2 additions & 2 deletions src/leo_lang/cli/commands/account.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
short = <span class="string">'e'</span>,
long,
help = <span class="string">"Endpoint to retrieve network state from."</span>,
default_value = <span class="string">"https://api.explorer.aleo.org/v1"
default_value = <span class="string">"https://api.explorer.provable.com/v1"
</span>)]
</span>endpoint: String,
},
Expand All @@ -520,7 +520,7 @@
short = <span class="string">'e'</span>,
long,
help = <span class="string">"Endpoint to retrieve network state from."</span>,
default_value = <span class="string">"https://api.explorer.aleo.org/v1"
default_value = <span class="string">"https://api.explorer.provable.com/v1"
</span>)]
</span>endpoint: String,
},
Expand Down
2 changes: 1 addition & 1 deletion src/leo_lang/cli/commands/example.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
short = <span class="string">'e'</span>,
long,
help = <span class="string">"Endpoint to retrieve network state from."</span>,
default_value = <span class="string">"https://api.explorer.aleo.org/v1"
default_value = <span class="string">"https://api.explorer.provable.com/v1"
</span>)]
</span><span class="kw">pub</span>(<span class="kw">crate</span>) endpoint: String,
}
Expand Down
2 changes: 1 addition & 1 deletion src/leo_lang/cli/commands/new.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
short = <span class="string">'e'</span>,
long,
help = <span class="string">"Endpoint to retrieve network state from."</span>,
default_value = <span class="string">"https://api.explorer.aleo.org/v1"
default_value = <span class="string">"https://api.explorer.provable.com/v1"
</span>)]
</span><span class="kw">pub</span>(<span class="kw">crate</span>) endpoint: String,
}
Expand Down
4 changes: 2 additions & 2 deletions src/leo_lang/cli/commands/query/mod.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,15 @@
QueryCommands::Stateroot { command } =&gt; (<span class="prelude-val">None</span>, command.apply(context, ())<span class="question-mark">?</span>),
QueryCommands::Committee { command } =&gt; (<span class="prelude-val">None</span>, command.apply(context, ())<span class="question-mark">?</span>),
QueryCommands::Mempool { command } =&gt; {
<span class="kw">if </span>endpoint == <span class="string">"https://api.explorer.aleo.org/v1" </span>{
<span class="kw">if </span>endpoint == <span class="string">"https://api.explorer.provable.com/v1" </span>{
<span class="macro">tracing::warn!</span>(
<span class="string">"⚠️ `leo query mempool` is only valid when using a custom endpoint. Specify one using `--endpoint`."
</span>);
}
(<span class="prelude-val">None</span>, command.apply(context, ())<span class="question-mark">?</span>)
}
QueryCommands::Peers { command } =&gt; {
<span class="kw">if </span>endpoint == <span class="string">"https://api.explorer.aleo.org/v1" </span>{
<span class="kw">if </span>endpoint == <span class="string">"https://api.explorer.provable.com/v1" </span>{
<span class="macro">tracing::warn!</span>(
<span class="string">"⚠️ `leo query peers` is only valid when using a custom endpoint. Specify one using `--endpoint`."
</span>);
Expand Down

0 comments on commit 62be0c4

Please sign in to comment.