From 76b8376a783badc876e2b789948404bc5bf0b6db Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Wed, 27 Mar 2024 14:57:43 -0700 Subject: [PATCH] Check send runestone (#3386) --- src/subcommand/wallet/send.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/subcommand/wallet/send.rs b/src/subcommand/wallet/send.rs index d0cdcd64a8..010ef3e26b 100644 --- a/src/subcommand/wallet/send.rs +++ b/src/subcommand/wallet/send.rs @@ -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) } }