From 0e0316b4e3851c8f14a9707af560a1ecd7a3cf65 Mon Sep 17 00:00:00 2001 From: ngutech21 Date: Fri, 16 Feb 2024 09:14:05 +0100 Subject: [PATCH] fix: temporary remove disabled-flag for nut4 --- integrationtests/tests/tests.rs | 7 ------- moksha-core/src/fixtures/nutshell_mint_info.json | 2 +- moksha-core/src/primitives.rs | 2 -- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/integrationtests/tests/tests.rs b/integrationtests/tests/tests.rs index e9188c5f..a6543814 100644 --- a/integrationtests/tests/tests.rs +++ b/integrationtests/tests/tests.rs @@ -138,13 +138,6 @@ pub fn test_integration() -> anyhow::Result<()> { assert_eq!(10, result_send.unwrap().total_amount()); let balance = wallet.get_balance().await.expect("Could not get balance"); assert_eq!(5_000, balance); - - // get info - let info = wallet - .get_mint_info() - .await - .expect("Could not get mint info"); - assert!(!info.nuts.nut4.disabled); }); Ok(()) diff --git a/moksha-core/src/fixtures/nutshell_mint_info.json b/moksha-core/src/fixtures/nutshell_mint_info.json index 2dd356fc..ee1f9ebe 100644 --- a/moksha-core/src/fixtures/nutshell_mint_info.json +++ b/moksha-core/src/fixtures/nutshell_mint_info.json @@ -11,7 +11,7 @@ ], "motd": "Message to users", "nuts": { - "4": { "methods": [["bolt11", "sat"]], "disabled": false }, + "4": { "methods": [["bolt11", "sat"]] }, "5": { "methods": [["bolt11", "sat"]], "disabled": false }, "7": { "supported": true }, "8": { "supported": true }, diff --git a/moksha-core/src/primitives.rs b/moksha-core/src/primitives.rs index b0bfe7a0..53345895 100644 --- a/moksha-core/src/primitives.rs +++ b/moksha-core/src/primitives.rs @@ -439,14 +439,12 @@ pub struct Nuts { #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Eq, ToSchema)] pub struct Nut4 { pub methods: Vec<(PaymentMethod, CurrencyUnit)>, - pub disabled: bool, } impl Default for Nut4 { fn default() -> Self { Self { methods: vec![(PaymentMethod::Bolt11, CurrencyUnit::Sat)], - disabled: false, } } }