Skip to content

Commit b8f6685

Browse files
committed
fix(firo): fail empty Spark auto mints
1 parent 10ced8d commit b8f6685

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2213,6 +2213,10 @@ mixin SparkInterface<T extends ElectrumXCurrencyInterface>
22132213
throw Exception("Failed to mint expected amounts");
22142214
}
22152215

2216+
if (autoMintAll && results.isEmpty) {
2217+
throw Exception("No Spark mint transactions were created");
2218+
}
2219+
22162220
return results;
22172221
}
22182222

0 commit comments

Comments
 (0)