mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
Fix wallet output for old config (#1919)
Wallet output operations expect now color scheme be defined in the configuration file. This fix makes it works for old configuration files.
This commit is contained in:
parent
53bce41981
commit
04438347ad
1 changed files with 4 additions and 4 deletions
|
@ -435,7 +435,7 @@ pub fn wallet_command(wallet_args: &ArgMatches, config: GlobalWalletConfig) -> i
|
||||||
account,
|
account,
|
||||||
&wallet_info,
|
&wallet_info,
|
||||||
validated,
|
validated,
|
||||||
wallet_config.dark_background_color_scheme.unwrap(),
|
wallet_config.dark_background_color_scheme.unwrap_or(true),
|
||||||
);
|
);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
@ -447,7 +447,7 @@ pub fn wallet_command(wallet_args: &ArgMatches, config: GlobalWalletConfig) -> i
|
||||||
height,
|
height,
|
||||||
validated,
|
validated,
|
||||||
outputs,
|
outputs,
|
||||||
wallet_config.dark_background_color_scheme.unwrap(),
|
wallet_config.dark_background_color_scheme.unwrap_or(true),
|
||||||
).map_err(|e| {
|
).map_err(|e| {
|
||||||
ErrorKind::GenericError(format!(
|
ErrorKind::GenericError(format!(
|
||||||
"Error getting wallet outputs: {:?} Config: {:?}",
|
"Error getting wallet outputs: {:?} Config: {:?}",
|
||||||
|
@ -477,7 +477,7 @@ pub fn wallet_command(wallet_args: &ArgMatches, config: GlobalWalletConfig) -> i
|
||||||
validated,
|
validated,
|
||||||
txs,
|
txs,
|
||||||
include_status,
|
include_status,
|
||||||
wallet_config.dark_background_color_scheme.unwrap(),
|
wallet_config.dark_background_color_scheme.unwrap_or(true),
|
||||||
).map_err(|e| {
|
).map_err(|e| {
|
||||||
ErrorKind::GenericError(format!(
|
ErrorKind::GenericError(format!(
|
||||||
"Error getting wallet outputs: {} Config: {:?}",
|
"Error getting wallet outputs: {} Config: {:?}",
|
||||||
|
@ -493,7 +493,7 @@ pub fn wallet_command(wallet_args: &ArgMatches, config: GlobalWalletConfig) -> i
|
||||||
height,
|
height,
|
||||||
validated,
|
validated,
|
||||||
outputs,
|
outputs,
|
||||||
wallet_config.dark_background_color_scheme.unwrap(),
|
wallet_config.dark_background_color_scheme.unwrap_or(true),
|
||||||
).map_err(|e| {
|
).map_err(|e| {
|
||||||
ErrorKind::GenericError(format!(
|
ErrorKind::GenericError(format!(
|
||||||
"Error getting wallet outputs: {} Config: {:?}",
|
"Error getting wallet outputs: {} Config: {:?}",
|
||||||
|
|
Loading…
Reference in a new issue