match (self.file, self.batch) {
(Some(file), None) => {
parent_info = Inscribe::get_parent_info(self.parent, &index, &utxos, &client, chain)?;
postage = self.postage.unwrap_or(TransactionBuilder::TARGET_POSTAGE);
inscriptions = vec![Inscription::from_file(
chain,
file,
self.parent,
None,
self.metaprotocol,
metadata,
self.compress,
)?];
mode = Mode::SeparateOutputs;
destinations = vec![match self.destination.clone() {
Some(destination) => destination.require_network(chain.network())?,
None => get_change_address(&client, chain)?,
}];
}
(None, Some(batch)) => {
let batchfile = Batchfile::load(&batch)?;
parent_info = Inscribe::get_parent_info(batchfile.parent, &index, &utxos, &client, chain)?;
postage = batchfile
.postage
.map(Amount::from_sat)
.unwrap_or(TransactionBuilder::TARGET_POSTAGE);