![](/_next/image?url=%2Fimages%2Fgradient-top-bg.png&w=1920&q=75)
.output .into_iter() .nth(satpoint.outpoint.vout.try_into().unwrap()) .expect("current transaction output"), })) } else { Err(anyhow!(format!("parent {parent_id} does not exist"))) } } else { Ok(None) } } } #[cfg(test)] mod tests { use { self::batch::BatchEntry, super::*, serde_yaml::{Mapping, Value}, }; #[test] fn reveal_transaction_pays_fee() { 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, _private_key, _) = Batch { satpoint: Some(satpoint(1, 0)), parent_info: None, inscriptions: vec![inscription], destinations: vec![reveal_address], commit_fee_rate: FeeRate::try_from(1.0).unwrap(), reveal_fee_rate: FeeRate::try_from(1.0).unwrap(), no_limit: false,
Inscription #44965913
Collection
Ord
Owner
bc1pf4kr0n...fslsw9qpsvID
3b3adcd9da...9495b1efi0
Detail
History
Sign Up for our Newsletter
And be the first to know about any updates!