From 7df8f76df19bf2a1e71c523b9545859548fcd575 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 18 Jun 2020 09:41:50 -0700 Subject: [PATCH] Add stub address_labels field for 1.3 compatibility --- cli-config/src/config.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli-config/src/config.rs b/cli-config/src/config.rs index e272970531..a7670de4e5 100644 --- a/cli-config/src/config.rs +++ b/cli-config/src/config.rs @@ -1,6 +1,6 @@ // Wallet settings that can be configured for long-term use use serde_derive::{Deserialize, Serialize}; -use std::io; +use std::{collections::HashMap, io}; use url::Url; lazy_static! { @@ -17,6 +17,8 @@ pub struct Config { pub json_rpc_url: String, pub websocket_url: String, pub keypair_path: String, + #[serde(default)] + pub address_labels: HashMap, } impl Default for Config { @@ -36,6 +38,7 @@ impl Default for Config { json_rpc_url, websocket_url, keypair_path, + address_labels: HashMap::new(), } } }