Skip to content

Commit

Permalink
Rename the old, broken --cursed flag to --cursed66.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmart7t2 committed Aug 3, 2023
1 parent 2b5f4c0 commit 5bb9432
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/subcommand/preview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
10 changes: 5 additions & 5 deletions src/subcommand/wallet/inscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ pub(crate) struct Inscribe {
pub(crate) csv: Option<PathBuf>,
#[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.")]
Expand Down Expand Up @@ -261,7 +261,7 @@ impl Inscribe {
Some(postage) => postage,
_ => TransactionBuilder::DEFAULT_TARGET_POSTAGE,
},
self.cursed,
self.cursed66,
self.allow_reinscribe,
self.single_key,
)?;
Expand Down Expand Up @@ -511,7 +511,7 @@ impl Inscribe {
max_inputs: Option<usize>,
no_limit: bool,
postage: Amount,
cursed: bool,
cursed66: bool,
allow_reinscribe: bool,
single_key: bool,
) -> Result<(SatPoint, Transaction, Vec<Transaction>, Vec<TweakedKeyPair>)> {
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 5bb9432

Please sign in to comment.