Use MAX_MONEY in serde regression test
We plan on enforcing MAX_MONEY in the amount types. In preparation use MAX_MONEY in the serde regression test instead of the arbitrary, and too large DEADBEEFCAFEBABE value.
This commit is contained in:
parent
67f3d498af
commit
08bb57e499
Binary file not shown.
|
@ -109,10 +109,8 @@ fn serde_regression_txin() {
|
|||
|
||||
#[test]
|
||||
fn serde_regression_txout() {
|
||||
let txout = TxOut {
|
||||
value: Amount::from_sat(0xDEADBEEFCAFEBABE),
|
||||
script_pubkey: ScriptBuf::from(vec![0u8, 1u8, 2u8]),
|
||||
};
|
||||
let txout =
|
||||
TxOut { value: Amount::MAX_MONEY, script_pubkey: ScriptBuf::from(vec![0u8, 1u8, 2u8]) };
|
||||
let got = serialize(&txout).unwrap();
|
||||
let want = include_bytes!("data/serde/txout_bincode") as &[_];
|
||||
assert_eq!(got, want)
|
||||
|
|
Loading…
Reference in New Issue