mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
fix firo double-or-int parse bug
This commit is contained in:
parent
6b534a4247
commit
47bd246c7b
1 changed files with 1 additions and 1 deletions
|
@ -3819,7 +3819,7 @@ class FiroWallet extends CoinServiceAPI {
|
|||
|
||||
var sendIndex = 1;
|
||||
if (tx["vout"][0]["value"] != null &&
|
||||
tx["vout"][0]["value"] as int > 0) {
|
||||
Decimal.parse(tx["vout"][0]["value"].toString()) > Decimal.zero) {
|
||||
sendIndex = 0;
|
||||
}
|
||||
tx["amount"] = tx["vout"][sendIndex]["value"];
|
||||
|
|
Loading…
Reference in a new issue