mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-23 19:05:51 +00:00
amount-related ui fixes for firo/spend-mints
This commit is contained in:
parent
b45146ac4b
commit
af1993cc01
1 changed files with 11 additions and 3 deletions
|
@ -914,8 +914,16 @@ class FiroWallet extends CoinServiceAPI
|
||||||
type: isar_models.TransactionType.outgoing,
|
type: isar_models.TransactionType.outgoing,
|
||||||
subType: isar_models.TransactionSubType.none,
|
subType: isar_models.TransactionSubType.none,
|
||||||
// precision may be lost here hence the following amountString
|
// precision may be lost here hence the following amountString
|
||||||
amount: (txData["recipientAmt"] as Amount).raw.toInt(),
|
amount: Amount(
|
||||||
amountString: (txData["recipientAmt"] as Amount).toJsonString(),
|
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,
|
fee: txData["fee"] as int,
|
||||||
height: null,
|
height: null,
|
||||||
isCancelled: false,
|
isCancelled: false,
|
||||||
|
@ -2663,7 +2671,7 @@ class FiroWallet extends CoinServiceAPI
|
||||||
|
|
||||||
Future<List<Map<String, dynamic>>> createMintsFromAmount(int total) async {
|
Future<List<Map<String, dynamic>>> createMintsFromAmount(int total) async {
|
||||||
var tmpTotal = total;
|
var tmpTotal = total;
|
||||||
var index = 1;
|
var index = 1; //
|
||||||
var mints = <Map<String, dynamic>>[];
|
var mints = <Map<String, dynamic>>[];
|
||||||
final nextFreeMintIndex = firoGetMintIndex()!;
|
final nextFreeMintIndex = firoGetMintIndex()!;
|
||||||
while (tmpTotal > 0) {
|
while (tmpTotal > 0) {
|
||||||
|
|
Loading…
Reference in a new issue