Skip to content

Commit

Permalink
fix: temporary remove disabled-flag for nut4
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Feb 16, 2024
1 parent dbf0e04 commit 0e0316b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
7 changes: 0 additions & 7 deletions integrationtests/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down
2 changes: 1 addition & 1 deletion moksha-core/src/fixtures/nutshell_mint_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
2 changes: 0 additions & 2 deletions moksha-core/src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
}
Expand Down

0 comments on commit 0e0316b

Please sign in to comment.