mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +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();
|
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
|
@override
|
||||||
Future<void> updateBalance() async {
|
Future<void> updateBalance() async {
|
||||||
// call to super to update transparent balance (and lelantus balance if
|
// call to super to update transparent balance (and lelantus balance if
|
||||||
|
|
Loading…
Reference in a new issue