Skip to content

Commit

Permalink
Check send runestone (#3386)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Mar 27, 2024
1 parent 5c4a24d commit 76b8376
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/subcommand/wallet/send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,13 @@ impl Send {
let unsigned_transaction =
fund_raw_transaction(bitcoin_client, fee_rate, &unfunded_transaction)?;

Ok(consensus::encode::deserialize(&unsigned_transaction)?)
let unsigned_transaction = consensus::encode::deserialize(&unsigned_transaction)?;

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

Ok(unsigned_transaction)
}
}

0 comments on commit 76b8376

Please sign in to comment.