Skip to content

Commit

Permalink
Better error checking when inscribing.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmart7t2 committed Feb 28, 2024
1 parent fe17e64 commit f40868c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/subcommand/wallet/inscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ impl Inscribe {
self.satpoint
};

let result = Batch {
Ok(Box::new(Batch {
commit_fee_rate: self.commit_fee_rate.unwrap_or(self.fee_rate),
commit_only: self.commit_only,
commit_vsize: self.commit_vsize,
Expand Down Expand Up @@ -403,8 +403,7 @@ impl Inscribe {
reveal_psbt: None,
satpoint,
}
.inscribe(chain, &index, &client, &locked_utxos, runic_utxos, &mut utxos, self.commit_input, change);
Ok(Box::new(result.unwrap()))
.inscribe(chain, &index, &client, &locked_utxos, runic_utxos, &mut utxos, self.commit_input, change)?))
}

fn parse_metadata(cbor: Option<PathBuf>, json: Option<PathBuf>) -> Result<Option<Vec<u8>>> {
Expand Down

0 comments on commit f40868c

Please sign in to comment.