Change wallet api_listen_port format (#815)

* Change wallet api_listen_port format
* Fix tests
This commit is contained in:
Quentin Le Sceller
2018-03-22 12:49:27 -04:00
committed by Ignotus Peverell
parent 9d366fe492
commit 675faec05d
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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);
}