reinscribe: false, postage: TransactionBuilder::TARGET_POSTAGE, mode: Mode::SharedOutput, ..Default::default() } .create_batch_inscription_transactions( BTreeMap::new(), Chain::Mainnet, BTreeSet::new(), utxos.into_iter().collect(), change, ) .unwrap(); #[allow(clippy::cast_possible_truncation)] #[allow(clippy::cast_sign_loss)] let fee = Amount::from_sat((1.0 * (reveal_tx.vsize() as f64)).ceil() as u64); assert_eq!( reveal_tx.output[0].value, 20000 - fee.to_sat() - (20000 - commit_tx.output[0].value), ); } #[test] fn inscribe_tansactions_opt_in_to_rbf() { let utxos = vec![(outpoint(1), Amount::from_sat(20000))]; let inscription = inscription("text/plain", "ord"); let commit_address = change(0); let reveal_address = recipient(); let change = [commit_address, change(1)]; let (commit_tx, reveal_tx, _, _) = Batch { satpoint: Some(satpoint(1, 0)), parent_info: None, inscriptions: vec![inscription],