fix firo double-or-int parse bug

This commit is contained in:
julian 2022-08-29 17:29:38 -06:00
parent 6b534a4247
commit 47bd246c7b

View file

@ -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"];