fix: hardcoded default values for node_url and rpc (#189)
This commit is contained in:
parent
2a95087ce4
commit
ed879d4d91
1 changed files with 2 additions and 2 deletions
|
@ -49,11 +49,11 @@ pub struct Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn default_rpc_addr() -> String {
|
fn default_rpc_addr() -> String {
|
||||||
env::var("RPC_URL").unwrap_or_else(|_| "http://127.0.0.1".to_string())
|
"http://127.0.0.1".to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn default_node_url() -> String {
|
fn default_node_url() -> String {
|
||||||
env::var("NODE_URL").unwrap_or_else(|_| "http://127.0.0.1:26657".to_string())
|
"127.0.0.1:26657".to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn default_tx_sender() -> String {
|
fn default_tx_sender() -> String {
|
||||||
|
|
Loading…
Reference in a new issue