Skip to content

Commit

Permalink
Fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-mysten committed Jan 10, 2025
1 parent b7eea31 commit bab2728
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/sui-faucet/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use thiserror::Error;

#[derive(Error, Debug, PartialEq, Eq)]
pub enum FaucetError {
#[error("For testnet tokens, please use the Web UI: https://faucet.testnet.sui.io")]
#[error("For testnet tokens, please use the Web UI: https://faucet.sui.io")]
NoToken,

#[error("Request limit exceeded. {0}")]
Expand Down
4 changes: 2 additions & 2 deletions crates/sui/src/client_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ impl SuiClientCommands {
let url = if let Some(url) = url {
if url.starts_with("https://faucet.testnet.sui.io") {
bail!(
"For testnet tokens, please use the Web UI: https://faucet.testnet.sui.io/?address={address}"
"For testnet tokens, please use the Web UI: https://faucet.sui.io/?address={address}"
)
}

Expand All @@ -1458,7 +1458,7 @@ impl SuiClientCommands {
let network = match env.rpc.as_str() {
SUI_DEVNET_URL => "https://faucet.devnet.sui.io/v1/gas",
SUI_TESTNET_URL => {
bail!("For testnet tokens, please use the Web UI: https://faucet.testnet.sui.io/?address={address}");
bail!("For testnet tokens, please use the Web UI: https://faucet.sui.io/?address={address}");
}
SUI_LOCAL_NETWORK_URL | SUI_LOCAL_NETWORK_URL_0 => "http://127.0.0.1:9123/gas",
_ => bail!("Cannot recognize the active network. Please provide the gas faucet full URL.")
Expand Down

0 comments on commit bab2728

Please sign in to comment.