Skip to content

Commit

Permalink
Check send runestone (ordinals#3386)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored and harutyunaraci committed Apr 2, 2024
1 parent 218d2b5 commit a6bb8f8
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 a6bb8f8

Please sign in to comment.