mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
small potential fix
This commit is contained in:
parent
d49bd54a72
commit
e78e0249c9
1 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,9 @@ class BitcoinWalletService extends WalletService<BitcoinNewWalletCredentials,
|
||||||
@override
|
@override
|
||||||
Future<BitcoinWallet> create(BitcoinNewWalletCredentials credentials) async {
|
Future<BitcoinWallet> create(BitcoinNewWalletCredentials credentials) async {
|
||||||
// default derivation type/path for bitcoin wallets:
|
// default derivation type/path for bitcoin wallets:
|
||||||
|
if (credentials.walletInfo!.derivationType == null) {
|
||||||
|
credentials.walletInfo!.derivationType = DerivationType.electrum2;
|
||||||
|
}
|
||||||
if (credentials.walletInfo!.derivationPath == null) {
|
if (credentials.walletInfo!.derivationPath == null) {
|
||||||
credentials.walletInfo!.derivationPath = "m/0'/1";
|
credentials.walletInfo!.derivationPath = "m/0'/1";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue