mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-25 11:45:59 +00:00
infinite loop bugfix
This commit is contained in:
parent
187f3bc462
commit
e6317a8507
2 changed files with 4 additions and 4 deletions
|
@ -356,14 +356,16 @@ extension CoinExt on Coin {
|
||||||
|
|
||||||
int get decimals => Constants.decimalPlacesForCoin(this);
|
int get decimals => Constants.decimalPlacesForCoin(this);
|
||||||
|
|
||||||
|
// Note: this must relate to DerivePathType for certain coins!
|
||||||
AddressType get primaryAddressType {
|
AddressType get primaryAddressType {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case Coin.bitcoin:
|
case Coin.bitcoin:
|
||||||
case Coin.bitcoinTestNet:
|
case Coin.bitcoinTestNet:
|
||||||
case Coin.litecoin:
|
case Coin.litecoin:
|
||||||
case Coin.litecoinTestNet:
|
case Coin.litecoinTestNet:
|
||||||
|
case Coin.namecoin:
|
||||||
|
case Coin.particl:
|
||||||
return AddressType.p2wpkh;
|
return AddressType.p2wpkh;
|
||||||
break;
|
|
||||||
|
|
||||||
case Coin.eCash:
|
case Coin.eCash:
|
||||||
case Coin.bitcoincash:
|
case Coin.bitcoincash:
|
||||||
|
@ -371,8 +373,6 @@ extension CoinExt on Coin {
|
||||||
case Coin.dogecoin:
|
case Coin.dogecoin:
|
||||||
case Coin.firo:
|
case Coin.firo:
|
||||||
case Coin.firoTestNet:
|
case Coin.firoTestNet:
|
||||||
case Coin.namecoin:
|
|
||||||
case Coin.particl:
|
|
||||||
case Coin.dogecoinTestNet:
|
case Coin.dogecoinTestNet:
|
||||||
return AddressType.p2pkh;
|
return AddressType.p2pkh;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import 'package:isar/isar.dart';
|
import 'package:isar/isar.dart';
|
||||||
import 'package:stackwallet/models/isar/models/blockchain_data/address.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/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.dart';
|
||||||
|
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/mnemonic_interface.dart';
|
||||||
|
|
||||||
abstract class Bip39Wallet<T extends Bip39Currency> extends Wallet<T>
|
abstract class Bip39Wallet<T extends Bip39Currency> extends Wallet<T>
|
||||||
with MnemonicInterface {
|
with MnemonicInterface {
|
||||||
|
|
Loading…
Reference in a new issue