ソースを参照

feat: remove redundant bool mpp flag

thesimplekid 4 ヶ月 前
コミット
84909d9fbc
2 ファイル変更1 行追加3 行削除
  1. 1 1
      crates/cdk/src/mint/builder.rs
  2. 0 2
      crates/cdk/src/nuts/nut15.rs

+ 1 - 1
crates/cdk/src/mint/builder.rs

@@ -124,8 +124,8 @@ impl MintBuilder {
             let mpp_settings = MppMethodSettings {
                 method,
                 unit: unit.clone(),
-                mpp: true,
             };
+
             let mut mpp = self.mint_info.nuts.nut15.clone();
 
             mpp.methods.push(mpp_settings);

+ 0 - 2
crates/cdk/src/nuts/nut15.rs

@@ -24,8 +24,6 @@ pub struct MppMethodSettings {
     pub method: PaymentMethod,
     /// Currency Unit e.g. sat
     pub unit: CurrencyUnit,
-    /// Multi part payment support
-    pub mpp: bool,
 }
 
 /// Mpp Settings