From 5bb94323134c2cd19bb4a826b8896034310537d8 Mon Sep 17 00:00:00 2001 From: Greg Martin Date: Thu, 3 Aug 2023 17:00:49 +0000 Subject: [PATCH] Rename the old, broken `--cursed` flag to `--cursed66`. --- src/subcommand/preview.rs | 2 +- src/subcommand/wallet/inscribe.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/subcommand/preview.rs b/src/subcommand/preview.rs index 33b5d1b89c..104425b65a 100644 --- a/src/subcommand/preview.rs +++ b/src/subcommand/preview.rs @@ -95,7 +95,7 @@ impl Preview { postage: Some(TransactionBuilder::DEFAULT_TARGET_POSTAGE), max_inputs: None, csv: None, - cursed: false, + cursed66: false, allow_reinscribe: false, single_key: false, }, diff --git a/src/subcommand/wallet/inscribe.rs b/src/subcommand/wallet/inscribe.rs index cd1121d9ed..70da7dac17 100644 --- a/src/subcommand/wallet/inscribe.rs +++ b/src/subcommand/wallet/inscribe.rs @@ -117,9 +117,9 @@ pub(crate) struct Inscribe { pub(crate) csv: Option, #[clap( long, - help = "Create a 'cursed' inscription (with an unknown even 0x42 tag)" + help = "Create a 'cursed' inscription (with an unknown even OP_66 tag)" )] - pub(crate) cursed: bool, + pub(crate) cursed66: bool, #[clap(long, help = "Allow inscription on sats that are already inscribed.")] pub(crate) allow_reinscribe: bool, #[clap(long, help = "Use the same recovery key for all inscriptions.")] @@ -261,7 +261,7 @@ impl Inscribe { Some(postage) => postage, _ => TransactionBuilder::DEFAULT_TARGET_POSTAGE, }, - self.cursed, + self.cursed66, self.allow_reinscribe, self.single_key, )?; @@ -511,7 +511,7 @@ impl Inscribe { max_inputs: Option, no_limit: bool, postage: Amount, - cursed: bool, + cursed66: bool, allow_reinscribe: bool, single_key: bool, ) -> Result<(SatPoint, Transaction, Vec, Vec)> { @@ -570,7 +570,7 @@ impl Inscribe { ScriptBuf::builder() .push_slice(public_key.serialize()) .push_opcode(opcodes::all::OP_CHECKSIG), - cursed, + cursed66, ); let taproot_spend_info = TaprootBuilder::new()