Merge pull request #472 from cypherstack/firo/spend-mints

ui fixes for firo/spend-mints
This commit is contained in:
Diego Salazar 2023-04-10 15:59:17 -06:00 committed by GitHub
commit 2e1b12b675
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -914,8 +914,16 @@ class FiroWallet extends CoinServiceAPI
type: isar_models.TransactionType.outgoing,
subType: isar_models.TransactionSubType.none,
// precision may be lost here hence the following amountString
amount: (txData["recipientAmt"] as Amount).raw.toInt(),
amountString: (txData["recipientAmt"] as Amount).toJsonString(),
amount: Amount(
rawValue: BigInt.from(txData["recipientAmt"] as int),
fractionDigits: coin.decimals)
.raw
.toInt(),
amountString: Amount(
rawValue: BigInt.from(txData["recipientAmt"] as int),
fractionDigits: coin.decimals)
.raw
.toString(),
fee: txData["fee"] as int,
height: null,
isCancelled: false,