mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 11:39:22 +00:00
fix pending LtC transaction (#1887)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
Some checks are pending
Cache Dependencies / test (push) Waiting to run
This commit is contained in:
parent
e4deb8455a
commit
b1751f1fd6
1 changed files with 7 additions and 0 deletions
|
@ -758,6 +758,13 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
|
||||||
if (!mwebEnabled) return false;
|
if (!mwebEnabled) return false;
|
||||||
if (!tx.isPending) 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 outputId = <String>[], target = <String>{};
|
||||||
final isHash = RegExp(r'^[a-f0-9]{64}$').hasMatch;
|
final isHash = RegExp(r'^[a-f0-9]{64}$').hasMatch;
|
||||||
final spendingOutputIds = tx.inputAddresses?.where(isHash) ?? [];
|
final spendingOutputIds = tx.inputAddresses?.where(isHash) ?? [];
|
||||||
|
|
Loading…
Reference in a new issue