mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-31 06:55:59 +00:00
Don't hash mweb addresses
This commit is contained in:
parent
fea7e7a097
commit
66d98a282c
1 changed files with 4 additions and 1 deletions
|
@ -113,11 +113,13 @@ abstract class ElectrumWalletBase
|
|||
SyncStatus syncStatus;
|
||||
|
||||
List<String> get scriptHashes => walletAddresses.addressesByReceiveType
|
||||
.where((addr) => addressTypeFromStr(addr.address, network) is! MwebAddress)
|
||||
.map((addr) => scriptHash(addr.address, network: network))
|
||||
.toList();
|
||||
|
||||
List<String> get publicScriptHashes => walletAddresses.allAddresses
|
||||
.where((addr) => !addr.isHidden)
|
||||
.where((addr) => addressTypeFromStr(addr.address, network) is! MwebAddress)
|
||||
.map((addr) => scriptHash(addr.address, network: network))
|
||||
.toList();
|
||||
|
||||
|
@ -1205,7 +1207,8 @@ abstract class ElectrumWalletBase
|
|||
}
|
||||
|
||||
Future<ElectrumBalance> fetchBalances() async {
|
||||
final addresses = walletAddresses.allAddresses.toList();
|
||||
final addresses = walletAddresses.allAddresses.where((address) =>
|
||||
addressTypeFromStr(address.address, network) is! MwebAddress).toList();
|
||||
final balanceFutures = <Future<Map<String, dynamic>>>[];
|
||||
for (var i = 0; i < addresses.length; i++) {
|
||||
final addressRecord = addresses[i];
|
||||
|
|
Loading…
Reference in a new issue