Skip to content

Commit 508c256

Browse files
committed
feat(cli): Use DEFAULT_MAINNET_RPC_URL
1 parent 83c836f commit 508c256

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cli/src/account.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ use std::fs::File;
77
use std::io::Write;
88
use std::path::PathBuf;
99

10-
use crate::config::{Config, ConfigOverride};
10+
use crate::{
11+
config::{Config, ConfigOverride},
12+
DEFAULT_MAINNET_RPC_URL,
13+
};
1114

1215
#[derive(Debug, Parser)]
1316
pub struct ShowAccountCommand {
@@ -33,7 +36,7 @@ pub fn show_account(cfg_override: &ConfigOverride, cmd: ShowAccountCommand) -> R
3336
if let Some(ref cluster) = cfg_override.cluster {
3437
cluster.url().to_string()
3538
} else {
36-
"https://api.mainnet-beta.solana.com".to_string()
39+
DEFAULT_MAINNET_RPC_URL.to_string()
3740
}
3841
}
3942
};

0 commit comments

Comments
 (0)