mode: Mode::SharedOutput,
..Default::default()
}
.create_batch_inscription_transactions(
wallet_inscriptions,
Chain::Signet,
BTreeSet::new(),
utxos.into_iter().collect(),
[commit_address, change(2)],
)
.unwrap_err()
.to_string();
assert!(error.contains(
"wallet does not contain enough cardinal UTXOs, please add additional funds to wallet."
));
}
#[test]
#[should_panic(
expected = "invariant: destination addresses and number of inscriptions doesn't match"
)]
fn batch_inscribe_with_inconsistent_reveal_addresses_panics() {
let utxos = vec![
(outpoint(1), Amount::from_sat(10_000)),
(outpoint(2), Amount::from_sat(80_000)),
];
let parent = inscription_id(1);
let parent_info = ParentInfo {
destination: change(3),
id: parent,
location: SatPoint {
outpoint: outpoint(1),
offset: 0,
},
tx_out: TxOut {
script_pubkey: change(0).script_pubkey(),
value: 10000,