diff --git a/lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart b/lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart index 2e0d0f2c0..7424047d6 100644 --- a/lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart +++ b/lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart @@ -333,6 +333,23 @@ mixin SparkInterface on Bip39HDWallet, ElectrumXInterface { throw UnimplementedError(); } + /// Broadcast a tx and TODO update Spark balance. + Future confirmSparkMintTransaction({required TxData txData}) async { + // Broadcast tx. + final txid = await electrumXClient.broadcastTransaction( + rawTx: txData.raw!, + ); + + // Check txid. + assert(txid == txData.txid!); + + // TODO update spark balance. + + return txData.copyWith( + txid: txid, + ); + } + @override Future updateBalance() async { // call to super to update transparent balance (and lelantus balance if