mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
small fix
This commit is contained in:
parent
90c120dcc5
commit
6e578ee2f5
1 changed files with 3 additions and 2 deletions
|
@ -37,8 +37,9 @@ class BitcoinWalletService extends WalletService<BitcoinNewWalletCredentials,
|
|||
@override
|
||||
Future<BitcoinWallet> create(BitcoinNewWalletCredentials credentials) async {
|
||||
// default derivation type/path for bitcoin wallets:
|
||||
// TODO: figure out what the default derivation path is
|
||||
credentials.walletInfo!.derivationPath = "m/0'/1";
|
||||
if (credentials.walletInfo!.derivationPath == null) {
|
||||
credentials.walletInfo!.derivationPath = "m/0'/1";
|
||||
}
|
||||
final wallet = await BitcoinWalletBase.create(
|
||||
mnemonic: await generateElectrumMnemonic(strength: 132),
|
||||
password: credentials.password!,
|
||||
|
|
Loading…
Reference in a new issue