infinite loop bugfix

This commit is contained in:
julian 2024-01-10 20:46:43 -06:00
parent 187f3bc462
commit e6317a8507
2 changed files with 4 additions and 4 deletions

View file

@ -356,14 +356,16 @@ extension CoinExt on Coin {
int get decimals => Constants.decimalPlacesForCoin(this);
// Note: this must relate to DerivePathType for certain coins!
AddressType get primaryAddressType {
switch (this) {
case Coin.bitcoin:
case Coin.bitcoinTestNet:
case Coin.litecoin:
case Coin.litecoinTestNet:
case Coin.namecoin:
case Coin.particl:
return AddressType.p2wpkh;
break;
case Coin.eCash:
case Coin.bitcoincash:
@ -371,8 +373,6 @@ extension CoinExt on Coin {
case Coin.dogecoin:
case Coin.firo:
case Coin.firoTestNet:
case Coin.namecoin:
case Coin.particl:
case Coin.dogecoinTestNet:
return AddressType.p2pkh;

View file

@ -1,8 +1,8 @@
import 'package:isar/isar.dart';
import 'package:stackwallet/models/isar/models/blockchain_data/address.dart';
import 'package:stackwallet/wallets/crypto_currency/intermediate/bip39_currency.dart';
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/mnemonic_interface.dart';
import 'package:stackwallet/wallets/wallet/wallet.dart';
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/mnemonic_interface.dart';
abstract class Bip39Wallet<T extends Bip39Currency> extends Wallet<T>
with MnemonicInterface {