Reformat the whole codebase with 100 line width (#3403)

This commit is contained in:
Omar Hatem
2026-07-15 01:20:33 +03:00
committed by GitHub
parent 1241b28bec
commit 16ddc0837a
801 changed files with 17517 additions and 17091 deletions
+19 -19
View File
@@ -185,7 +185,7 @@ class CWBitcoin extends Bitcoin {
balance: addr.balance,
isChange: addr.isHidden,
isLegacyDerivation: addr.isLegacyDerivation,
derivationPath: addr.derivationPath))
derivationPath: addr.derivationPath))
.toList();
}
@@ -206,10 +206,8 @@ class CWBitcoin extends Bitcoin {
return estimatedTx.amount;
}
if (wallet.type == WalletType.dogecoin) {
final dogeAddr =
sk.getPublic().toP2pkhAddress();
final dogeAddr = sk.getPublic().toP2pkhAddress();
final estimatedTx = await electrumWallet.estimateSendAllTx(
[BitcoinOutput(address: dogeAddr, value: BigInt.zero)],
getFeeRate(wallet, priority as BitcoinTransactionPriority),
@@ -276,14 +274,13 @@ class CWBitcoin extends Bitcoin {
await bitcoinWallet.updateAllUnspents();
}
WalletService createBitcoinWalletService(
Box<UnspentCoinsInfo> unspentCoinSource,
Box<PayjoinSession> payjoinSessionSource,
bool isDirect) {
WalletService createBitcoinWalletService(Box<UnspentCoinsInfo> unspentCoinSource,
Box<PayjoinSession> payjoinSessionSource, bool isDirect) {
return BitcoinWalletService(unspentCoinSource, payjoinSessionSource, isDirect);
}
WalletService createLitecoinWalletService(Box<UnspentCoinsInfo> unspentCoinSource, bool isDirect) {
WalletService createLitecoinWalletService(
Box<UnspentCoinsInfo> unspentCoinSource, bool isDirect) {
return LitecoinWalletService(unspentCoinSource, isDirect);
}
@@ -340,7 +337,8 @@ class CWBitcoin extends Bitcoin {
}
@override
BitcoinReceivePageOption getBitcoinLightningReceivePageOption() => BitcoinReceivePageOption.lightning;
BitcoinReceivePageOption getBitcoinLightningReceivePageOption() =>
BitcoinReceivePageOption.lightning;
@override
BitcoinReceivePageOption getBitcoinSegwitPageOption() => BitcoinReceivePageOption.p2wpkh;
@override
@@ -839,9 +837,11 @@ class CWBitcoin extends Bitcoin {
final addresses = <String>[];
if (bitcoinTx.unspents == null || bitcoinTx.unspents!.isEmpty) {
if(bitcoinTx.outputAddresses == null) return null;
for(final addr in bitcoinTx.outputAddresses!) {
if(bitcoinWallet.walletAddresses.allAddresses.firstWhereOrNull((item)=>item.address==addr) != null) {
if (bitcoinTx.outputAddresses == null) return null;
for (final addr in bitcoinTx.outputAddresses!) {
if (bitcoinWallet.walletAddresses.allAddresses
.firstWhereOrNull((item) => item.address == addr) !=
null) {
addresses.add(addr);
}
}
@@ -850,12 +850,12 @@ class CWBitcoin extends Bitcoin {
final labels = <String>[];
try {
bitcoinTx.unspents!.forEach((unspent) {
addresses.add(bitcoinWallet.walletAddresses.silentAddresses
.firstWhere((address) => address.silentPaymentTweak == unspent.silentPaymentLabel)
.address);
});
} catch (e) {}
bitcoinTx.unspents!.forEach((unspent) {
addresses.add(bitcoinWallet.walletAddresses.silentAddresses
.firstWhere((address) => address.silentPaymentTweak == unspent.silentPaymentLabel)
.address);
});
} catch (e) {}
return addresses;
}