From 641c30101e8bd4d734453b7c725217ed60b348f9 Mon Sep 17 00:00:00 2001 From: Cesar Rodas Date: Fri, 6 Dec 2024 12:56:21 -0300 Subject: [PATCH] Fixed bug with Default as described in https://github.com/cashubtc/cdk/pull/473#discussion_r1871032297 --- crates/cdk/src/nuts/nut17/mod.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/cdk/src/nuts/nut17/mod.rs b/crates/cdk/src/nuts/nut17/mod.rs index a7b0698c..0160cc64 100644 --- a/crates/cdk/src/nuts/nut17/mod.rs +++ b/crates/cdk/src/nuts/nut17/mod.rs @@ -44,9 +44,7 @@ pub struct SupportedSettings { impl Default for SupportedSettings { fn default() -> Self { - SupportedSettings { - supported: vec![SupportedMethods::default()], - } + SupportedSettings { supported: vec![] } } } @@ -67,11 +65,7 @@ impl SupportedMethods { Self { method, unit, - commands: vec![ - "bolt11_mint_quote".to_owned(), - "bolt11_melt_quote".to_owned(), - "proof_state".to_owned(), - ], + commands: Vec::new(), } } }