Skip to content

Commit

Permalink
Check mint runestone (ordinals#3388)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Mar 27, 2024
1 parent 0ed85a9 commit 8476e5a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/subcommand/wallet/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ impl Mint {
.sign_raw_transaction_with_wallet(&unsigned_transaction, None, None)?
.hex;

let signed_transaction = consensus::encode::deserialize(&signed_transaction)?;

assert_eq!(
Runestone::from_transaction(&signed_transaction).unwrap(),
runestone,
);

let transaction = bitcoin_client.send_raw_transaction(&signed_transaction)?;

Ok(Some(Box::new(Output {
Expand Down

0 comments on commit 8476e5a

Please sign in to comment.