mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-12 09:32:33 +00:00
[skip ci] minor code cleanup
This commit is contained in:
parent
bb6d89a4b8
commit
50f69ff6e9
1 changed files with 12 additions and 7 deletions
|
@ -1045,17 +1045,22 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
|
|||
bool hasRegularOutput = false;
|
||||
|
||||
for (final output in transactionCredentials.outputs) {
|
||||
if (output.address.toLowerCase().contains("mweb") ||
|
||||
(output.extractedAddress?.toLowerCase().contains("mweb") ?? false)) {
|
||||
final address = output.address.toLowerCase();
|
||||
final extractedAddress = output.extractedAddress?.toLowerCase();
|
||||
|
||||
if (address.contains("mweb")) {
|
||||
hasMwebOutput = true;
|
||||
break;
|
||||
}
|
||||
if (!(output.address.toLowerCase().contains("mweb"))) {
|
||||
if (!address.contains("mweb")) {
|
||||
hasRegularOutput = true;
|
||||
}
|
||||
final extractedAddress = output.extractedAddress;
|
||||
if (extractedAddress != null && !(extractedAddress.toLowerCase().contains("mweb"))) {
|
||||
hasRegularOutput = true;
|
||||
if (extractedAddress != null && extractedAddress.isNotEmpty) {
|
||||
if (extractedAddress.contains("mweb")) {
|
||||
hasMwebOutput = true;
|
||||
}
|
||||
if (!extractedAddress.contains("mweb")) {
|
||||
hasRegularOutput = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue