mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-19 05:58:50 +02:00
fix pending LtC transaction (#1887)
This commit is contained in:
@@ -758,6 +758,13 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
|
||||
if (!mwebEnabled) return false;
|
||||
if (!tx.isPending) return false;
|
||||
|
||||
final isMwebTx = (tx.inputAddresses?.any((addr) => addr.contains("mweb")) ?? false) ||
|
||||
(tx.outputAddresses?.any((addr) => addr.contains("mweb")) ?? false);
|
||||
|
||||
if (!isMwebTx) {
|
||||
return false;
|
||||
}
|
||||
|
||||
final outputId = <String>[], target = <String>{};
|
||||
final isHash = RegExp(r'^[a-f0-9]{64}$').hasMatch;
|
||||
final spendingOutputIds = tx.inputAddresses?.where(isHash) ?? [];
|
||||
|
||||
Reference in New Issue
Block a user