From 03a3fb8d744b3e3ee04523072138e47032f9091b Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Thu, 19 Sep 2024 17:16:17 -0700 Subject: [PATCH] fix --- cw_bitcoin/lib/litecoin_wallet.dart | 2 -- cw_mweb/ios/Classes/CwMwebPlugin.swift | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cw_bitcoin/lib/litecoin_wallet.dart b/cw_bitcoin/lib/litecoin_wallet.dart index 8df7f62ca..c12adb560 100644 --- a/cw_bitcoin/lib/litecoin_wallet.dart +++ b/cw_bitcoin/lib/litecoin_wallet.dart @@ -887,8 +887,6 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store { } }); - throw Exception("Not finished!"); - tx.hexOverride = tx2 .copyWith( witnesses: tx2.inputs.asMap().entries.map((e) { diff --git a/cw_mweb/ios/Classes/CwMwebPlugin.swift b/cw_mweb/ios/Classes/CwMwebPlugin.swift index f1fd78cd8..1face6f14 100644 --- a/cw_mweb/ios/Classes/CwMwebPlugin.swift +++ b/cw_mweb/ios/Classes/CwMwebPlugin.swift @@ -13,20 +13,20 @@ public static func register(with registrar: FlutterPluginRegistrar) { private static var port: Int = 0 private static var dataDir: String? - public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) { + public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) async { switch call.method { case "getPlatformVersion": result("iOS " + UIDevice.current.systemVersion) break case "start": - stopServer() + await stopServer() let args = call.arguments as? [String: String] let dataDir = args?["dataDir"] CwMwebPlugin.dataDir = dataDir - startServer(result: result) + await startServer(result: result) break case "stop": - stopServer() + await stopServer() result(nil) break case "address":