mirror of
https://github.com/mimblewimble/grin.git
synced 2025-05-07 09:41:15 +03:00
Fix 672 (#673)
This commit is contained in:
parent
c75026153c
commit
33cb0902bd
1 changed files with 2 additions and 2 deletions
|
@ -346,8 +346,8 @@ impl<'de> serde::de::Deserialize<'de> for OutputPrintable {
|
|||
Field::SwitchCommitHash => {
|
||||
no_dup!(switch_commit_hash);
|
||||
|
||||
let val: &str = map.next_value()?;
|
||||
let hash = core::SwitchCommitHash::from_hex(val.clone())
|
||||
let val: String = map.next_value()?;
|
||||
let hash = core::SwitchCommitHash::from_hex(&val.clone())
|
||||
.map_err(serde::de::Error::custom)?;
|
||||
switch_commit_hash = Some(hash)
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue