Merge pull request #11 from cypherstack/ui-testing

fix firo double-or-int parse bug
This commit is contained in:
Rylee Davis 2022-08-29 17:45:37 -06:00 committed by GitHub
commit c40f7c0e90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3819,7 +3819,7 @@ class FiroWallet extends CoinServiceAPI {
var sendIndex = 1; var sendIndex = 1;
if (tx["vout"][0]["value"] != null && if (tx["vout"][0]["value"] != null &&
tx["vout"][0]["value"] as int > 0) { Decimal.parse(tx["vout"][0]["value"].toString()) > Decimal.zero) {
sendIndex = 0; sendIndex = 0;
} }
tx["amount"] = tx["vout"][sendIndex]["value"]; tx["amount"] = tx["vout"][sendIndex]["value"];