![](/_next/image?url=%2Fimages%2Fgradient-top-bg.png&w=1920&q=75)
outputs: vec![ (recipient(), Amount::from_sat(5_000)), (recipient(), Amount::from_sat(5_000)), (change(1), Amount::from_sat(1_774)), ], target: Target::Postage, } .build() .unwrap(); } #[test] #[should_panic(expected = "invariant: change addresses appear at most once in outputs")] fn invariant_change_appears_at_most_once() { let mut amounts = BTreeMap::new(); amounts.insert(outpoint(1), Amount::from_sat(5_000)); amounts.insert(outpoint(2), Amount::from_sat(5_000)); amounts.insert(outpoint(3), Amount::from_sat(2_000)); TransactionBuilder { amounts, fee_rate: FeeRate::try_from(1.0).unwrap(), utxos: BTreeSet::new(), locked_utxos: BTreeSet::new(), outgoing: satpoint(1, 0), inscriptions: BTreeMap::new(), recipient: recipient(), unused_change_addresses: vec![change(0), change(1)], change_addresses: vec![change(0), change(1)].into_iter().collect(), inputs: vec![outpoint(1), outpoint(2), outpoint(3)],
Inscription #44964702
Collection
Ord
Owner
bc1pzwadl6...t66sn0peflID
e70de04ef7...9cac461di0
Detail
History
Sign Up for our Newsletter
And be the first to know about any updates!