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!,