This commit is contained in:
Matthew Fosse 2024-09-19 17:16:17 -07:00
parent 7ee8949a71
commit 03a3fb8d74
2 changed files with 4 additions and 6 deletions

View file

@ -887,8 +887,6 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
} }
}); });
throw Exception("Not finished!");
tx.hexOverride = tx2 tx.hexOverride = tx2
.copyWith( .copyWith(
witnesses: tx2.inputs.asMap().entries.map((e) { witnesses: tx2.inputs.asMap().entries.map((e) {

View file

@ -13,20 +13,20 @@ public static func register(with registrar: FlutterPluginRegistrar) {
private static var port: Int = 0 private static var port: Int = 0
private static var dataDir: String? 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 { switch call.method {
case "getPlatformVersion": case "getPlatformVersion":
result("iOS " + UIDevice.current.systemVersion) result("iOS " + UIDevice.current.systemVersion)
break break
case "start": case "start":
stopServer() await stopServer()
let args = call.arguments as? [String: String] let args = call.arguments as? [String: String]
let dataDir = args?["dataDir"] let dataDir = args?["dataDir"]
CwMwebPlugin.dataDir = dataDir CwMwebPlugin.dataDir = dataDir
startServer(result: result) await startServer(result: result)
break break
case "stop": case "stop":
stopServer() await stopServer()
result(nil) result(nil)
break break
case "address": case "address":