From fa1218d9df2906f46be6559e52173b9b87d6adf6 Mon Sep 17 00:00:00 2001 From: Razue <86399543+Razue@users.noreply.github.com> Date: Mon, 11 Aug 2025 18:34:01 +0200 Subject: [PATCH] fix warning for using melt function --- macadamia/PersistentModelV1/Operations/melt.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/macadamia/PersistentModelV1/Operations/melt.swift b/macadamia/PersistentModelV1/Operations/melt.swift index 182110b..1714595 100644 --- a/macadamia/PersistentModelV1/Operations/melt.swift +++ b/macadamia/PersistentModelV1/Operations/melt.swift @@ -119,12 +119,12 @@ extension AppSchemaV1.Mint { Task { do { logger.debug("Attempting to melt...") - - - let meltResult = try await CashuSwift.meltState(mint: sendableMint, - quoteID: quote.quote, - blankOutputs: blankOutputs) - + + let meltResult = try await CashuSwift.melt(with: quote, + mint: sendableMint, + proofs: [], + blankOutputs: blankOutputs) + if meltResult.paid { // make sendable change proofs let sendableProofs = meltResult.change