File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ default = ["json-contract"]
1414
1515json-contract = [" serde_json" ]
1616"serde" = [
17- " bitcoin/serde" ,
1817 " bitcoin/serde" ,
1918 " secp256k1-zkp/serde" ,
2019 " actual-serde" ,
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ impl fmt::Display for TxOutError {
5959 TxOutError :: MoneyOutofRange => write ! (
6060 f,
6161 "Explicit amount must be\
62- less than 21 million "
62+ less or equal than i64::MAX "
6363 ) ,
6464 TxOutError :: NonUnspendableZeroValue => {
6565 write ! (
@@ -468,7 +468,7 @@ impl TxOut {
468468 /// Rangeproof Minimum private bits
469469 pub const RANGEPROOF_MIN_PRIV_BITS : u8 = 52 ;
470470 /// Maximum explicit amount in a bitcoin `TxOut`
471- pub const MAX_MONEY : u64 = 21_000_000 * 100_000_000 ;
471+ pub const MAX_MONEY : u64 = i64 :: MAX as u64 ;
472472
473473 /// Creates a new confidential output that is **not** the last one in the transaction.
474474 /// Provide input secret information by creating [`SurjectionInput`] for each input.
You can’t perform that action at this time.
0 commit comments