increment mint index by 1

This commit is contained in:
sneurlax 2023-03-22 17:29:20 -05:00
parent e76fd0b00a
commit 79706d51f5

View file

@ -2654,7 +2654,7 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive {
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 = 0; 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) {