firo anonymity set mint saving error

This commit is contained in:
Marco 2022-09-06 19:47:57 +08:00
parent d90a3451ac
commit 88bc15fcd3

View file

@ -2191,6 +2191,7 @@ class FiroWallet extends CoinServiceAPI {
Future<bool> _submitLelantusToNetwork( Future<bool> _submitLelantusToNetwork(
Map<String, dynamic> transactionInfo) async { Map<String, dynamic> transactionInfo) async {
final latestSetId = await getLatestSetId();
final txid = await submitHexToNetwork(transactionInfo['txHex'] as String); final txid = await submitHexToNetwork(transactionInfo['txHex'] as String);
// success if txid matches the generated txid // success if txid matches the generated txid
Logging.instance.log( Logging.instance.log(
@ -2232,7 +2233,7 @@ class FiroWallet extends CoinServiceAPI {
transactionInfo['jmintValue'] as int? ?? 0, transactionInfo['jmintValue'] as int? ?? 0,
transactionInfo['publicCoin'] as String, transactionInfo['publicCoin'] as String,
transactionInfo['txid'] as String, transactionInfo['txid'] as String,
1, latestSetId,
false); false);
if (jmint.value > 0) { if (jmint.value > 0) {
coins.add({jmint.txId: jmint}); coins.add({jmint.txId: jmint});
@ -2276,7 +2277,7 @@ class FiroWallet extends CoinServiceAPI {
mintMap['value'] as int, mintMap['value'] as int,
mintMap['publicCoin'] as String, mintMap['publicCoin'] as String,
transactionInfo['txid'] as String, transactionInfo['txid'] as String,
1, latestSetId,
false, false,
); );
if (mint.value > 0) { if (mint.value > 0) {