mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-22 23:25:22 +01:00
fix(NUT10): secret tag is optional
This commit is contained in:
@@ -100,7 +100,10 @@ pub async fn send(wallet: Wallet, sub_command_args: &SendSubCommand) -> Result<(
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
Some(SpendingConditions::new_htlc(preimage.clone(), conditions)?)
|
||||
Some(SpendingConditions::new_htlc(
|
||||
preimage.clone(),
|
||||
Some(conditions),
|
||||
)?)
|
||||
}
|
||||
None => match sub_command_args.pubkey.is_empty() {
|
||||
true => None,
|
||||
@@ -136,7 +139,7 @@ pub async fn send(wallet: Wallet, sub_command_args: &SendSubCommand) -> Result<(
|
||||
|
||||
Some(SpendingConditions::P2PKConditions {
|
||||
data: data_pubkey,
|
||||
conditions,
|
||||
conditions: Some(conditions),
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user