Browse Source

Match error message in Amount::Read_i64() to allow_negative value

master
Jack Grigg 6 years ago
parent
commit
e25b614573
No known key found for this signature in database
GPG Key ID: 1B8D649257DB0829
  1. 6
      zcash_primitives/src/transaction/components.rs

6
zcash_primitives/src/transaction/components.rs

@ -37,7 +37,11 @@ impl Amount {
} else {
Err(io::Error::new(
io::ErrorKind::InvalidData,
"Amount not in {0..MAX_MONEY}",
if allow_negative {
"Amount not in {-MAX_MONEY..MAX_MONEY}"
} else {
"Amount not in {0..MAX_MONEY}"
},
))
}
}

Loading…
Cancel
Save