Skip to content

Commit

Permalink
Merge branch 'master' into kayagokalp/sdk-0.70
Browse files Browse the repository at this point in the history
  • Loading branch information
kayagokalp authored Jan 21, 2025
2 parents 6f6314c + f6f0ff0 commit 0f066e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
20 changes: 0 additions & 20 deletions src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,17 +259,9 @@ pub(crate) fn verify_address_and_update_cache(
}

pub(crate) fn print_balance_empty(node_url: &Url) {
let beta_2_url = crate::network::BETA_2.parse::<Url>().unwrap();
let beta_3_url = crate::network::BETA_3.parse::<Url>().unwrap();
let beta_4_url = crate::network::BETA_4.parse::<Url>().unwrap();
let beta_5_url = crate::network::BETA_5.parse::<Url>().unwrap();
let testnet_url = crate::network::TESTNET.parse::<Url>().unwrap();

let faucet_url = match node_url.host_str() {
host if host == beta_2_url.host_str() => crate::network::BETA_2_FAUCET,
host if host == beta_3_url.host_str() => crate::network::BETA_3_FAUCET,
host if host == beta_4_url.host_str() => crate::network::BETA_4_FAUCET,
host if host == beta_5_url.host_str() => crate::network::BETA_5_FAUCET,
host if host == testnet_url.host_str() => crate::network::TESTNET_FAUCET,
_ => return println!(" Account empty."),
};
Expand Down Expand Up @@ -570,18 +562,6 @@ pub(crate) async fn transfer_cli(
host if host == crate::network::TESTNET.parse::<Url>().unwrap().host_str() => {
crate::explorer::TESTNET
}
host if host == crate::network::BETA_5.parse::<Url>().unwrap().host_str() => {
crate::explorer::BETA_5
}
host if host == crate::network::BETA_4.parse::<Url>().unwrap().host_str() => {
crate::explorer::BETA_4
}
host if host == crate::network::BETA_3.parse::<Url>().unwrap().host_str() => {
crate::explorer::BETA_3
}
host if host == crate::network::BETA_2.parse::<Url>().unwrap().host_str() => {
crate::explorer::BETA_2
}
_ => "",
};

Expand Down
12 changes: 0 additions & 12 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ pub const DEFAULT_CACHE_ACCOUNTS: usize = 1;
/// The default network used in the case that none is specified.
pub mod network {
pub const DEFAULT: &str = MAINNET;
pub const BETA_2: &str = "https://node-beta-2.fuel.network";
pub const BETA_2_FAUCET: &str = "https://faucet-beta-2.fuel.network";
pub const BETA_3: &str = "https://beta-3.fuel.network/";
pub const BETA_3_FAUCET: &str = "https://faucet-beta-3.fuel.network/";
pub const BETA_4: &str = "https://beta-4.fuel.network/";
pub const BETA_4_FAUCET: &str = "https://faucet-beta-4.fuel.network/";
pub const BETA_5: &str = "https://beta-5.fuel.network/";
pub const BETA_5_FAUCET: &str = "https://faucet-beta-5.fuel.network/";
pub const TESTNET: &str = "https://testnet.fuel.network/";
pub const TESTNET_FAUCET: &str = "https://faucet-testnet.fuel.network/";
pub const MAINNET: &str = "https://mainnet.fuel.network/";
Expand All @@ -28,10 +20,6 @@ pub mod network {
/// Contains definitions of URLs to the block explorer for each network.
pub mod explorer {
pub const DEFAULT: &str = MAINNET;
pub const BETA_2: &str = "https://fuellabs.github.io/block-explorer-v2/beta-2";
pub const BETA_3: &str = "https://fuellabs.github.io/block-explorer-v2/beta-3";
pub const BETA_4: &str = "https://fuellabs.github.io/block-explorer-v2/beta-4";
pub const BETA_5: &str = "https://fuellabs.github.io/block-explorer-v2/beta-5";
pub const TESTNET: &str = "https://app-testnet.fuel.network";
pub const MAINNET: &str = "https://app.fuel.network";
}

0 comments on commit 0f066e9

Please sign in to comment.