mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-31 15:06:04 +00:00
fix
This commit is contained in:
parent
7ee8949a71
commit
03a3fb8d74
2 changed files with 4 additions and 6 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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":
|
||||||
|
|
Loading…
Reference in a new issue