mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-26 00:58:50 +00:00
check all outputs for potential notification tx
This commit is contained in:
parent
32c942ad42
commit
85d69c0cb2
1 changed files with 9 additions and 7 deletions
|
@ -189,7 +189,8 @@ mixin ElectrumXParsing {
|
||||||
|
|
||||||
TransactionSubType txSubType = TransactionSubType.none;
|
TransactionSubType txSubType = TransactionSubType.none;
|
||||||
if (this is PaynymWalletInterface && outs.length > 1 && ins.isNotEmpty) {
|
if (this is PaynymWalletInterface && outs.length > 1 && ins.isNotEmpty) {
|
||||||
List<String>? scriptChunks = outs[1].scriptPubKeyAsm?.split(" ");
|
for (int i = 0; i < outs.length; i++) {
|
||||||
|
List<String>? scriptChunks = outs[i].scriptPubKeyAsm?.split(" ");
|
||||||
if (scriptChunks?.length == 2 && scriptChunks?[0] == "OP_RETURN") {
|
if (scriptChunks?.length == 2 && scriptChunks?[0] == "OP_RETURN") {
|
||||||
final blindedPaymentCode = scriptChunks![1];
|
final blindedPaymentCode = scriptChunks![1];
|
||||||
final bytes = blindedPaymentCode.fromHex;
|
final bytes = blindedPaymentCode.fromHex;
|
||||||
|
@ -200,6 +201,7 @@ mixin ElectrumXParsing {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
final tx = Transaction(
|
final tx = Transaction(
|
||||||
walletId: walletId,
|
walletId: walletId,
|
||||||
|
|
Loading…
Reference in a new issue