mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-25 08:38:45 +00:00
comment and fix error messages
This commit is contained in:
parent
2cca59532e
commit
ce1dce1130
1 changed files with 6 additions and 2 deletions
|
@ -1138,7 +1138,8 @@ class FiroWallet extends CoinServiceAPI
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
Logging.instance.log("Exception rethrown from prepareSend(): $e\n$s",
|
Logging.instance.log(
|
||||||
|
"Exception rethrown from prepareSendPublic(): $e\n$s",
|
||||||
level: LogLevel.Error);
|
level: LogLevel.Error);
|
||||||
rethrow;
|
rethrow;
|
||||||
}
|
}
|
||||||
|
@ -1146,7 +1147,8 @@ class FiroWallet extends CoinServiceAPI
|
||||||
throw ArgumentError("Invalid fee rate argument provided!");
|
throw ArgumentError("Invalid fee rate argument provided!");
|
||||||
}
|
}
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
Logging.instance.log("Exception rethrown from prepareSend(): $e\n$s",
|
Logging.instance.log(
|
||||||
|
"Exception rethrown from prepareSendPublic(): $e\n$s",
|
||||||
level: LogLevel.Error);
|
level: LogLevel.Error);
|
||||||
rethrow;
|
rethrow;
|
||||||
}
|
}
|
||||||
|
@ -2346,6 +2348,8 @@ class FiroWallet extends CoinServiceAPI
|
||||||
final lelantusEntries = await Future.wait(waitLelantusEntries);
|
final lelantusEntries = await Future.wait(waitLelantusEntries);
|
||||||
|
|
||||||
if (lelantusEntries.isNotEmpty) {
|
if (lelantusEntries.isNotEmpty) {
|
||||||
|
// should be redundant as _getUnspentCoins() should
|
||||||
|
// already remove all where value=0
|
||||||
lelantusEntries.removeWhere((element) => element.amount == 0);
|
lelantusEntries.removeWhere((element) => element.amount == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue