mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
confirmSparkMintTransaction
This commit is contained in:
parent
f30e996655
commit
5567d96f5a
1 changed files with 17 additions and 0 deletions
|
@ -333,6 +333,23 @@ mixin SparkInterface on Bip39HDWallet, ElectrumXInterface {
|
|||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
/// Broadcast a tx and TODO update Spark balance.
|
||||
Future<TxData> 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<void> updateBalance() async {
|
||||
// call to super to update transparent balance (and lelantus balance if
|
||||
|
|
Loading…
Reference in a new issue