From 6e578ee2f557524b02a642f836d82e0558224513 Mon Sep 17 00:00:00 2001 From: fosse Date: Fri, 8 Sep 2023 12:38:44 -0400 Subject: [PATCH] small fix --- cw_bitcoin/lib/bitcoin_wallet_service.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cw_bitcoin/lib/bitcoin_wallet_service.dart b/cw_bitcoin/lib/bitcoin_wallet_service.dart index cb37fc250..20d2206a5 100644 --- a/cw_bitcoin/lib/bitcoin_wallet_service.dart +++ b/cw_bitcoin/lib/bitcoin_wallet_service.dart @@ -37,8 +37,9 @@ class BitcoinWalletService extends WalletService 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!,