Change wallet api_listen_port format (#815)
* Change wallet api_listen_port format * Fix tests
This commit is contained in:
committed by
Ignotus Peverell
parent
9d366fe492
commit
675faec05d
+1
-1
@@ -516,7 +516,7 @@ fn wallet_command(wallet_args: &ArgMatches, global_config: GlobalConfig) {
|
||||
match wallet_args.subcommand() {
|
||||
("listen", Some(listen_args)) => {
|
||||
if let Some(port) = listen_args.value_of("port") {
|
||||
wallet_config.api_listen_port = port.to_string();
|
||||
wallet_config.api_listen_port = port.parse().unwrap();
|
||||
}
|
||||
wallet::server::start_rest_apis(wallet_config, keychain);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user