From e78e0249c910050c13966c4674fb920655f4497b Mon Sep 17 00:00:00 2001 From: fosse Date: Mon, 11 Sep 2023 08:57:36 -0400 Subject: [PATCH] small potential fix --- cw_bitcoin/lib/bitcoin_wallet_service.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cw_bitcoin/lib/bitcoin_wallet_service.dart b/cw_bitcoin/lib/bitcoin_wallet_service.dart index 20d2206a5..60c5cd085 100644 --- a/cw_bitcoin/lib/bitcoin_wallet_service.dart +++ b/cw_bitcoin/lib/bitcoin_wallet_service.dart @@ -37,6 +37,9 @@ class BitcoinWalletService extends WalletService create(BitcoinNewWalletCredentials credentials) async { // default derivation type/path for bitcoin wallets: + if (credentials.walletInfo!.derivationType == null) { + credentials.walletInfo!.derivationType = DerivationType.electrum2; + } if (credentials.walletInfo!.derivationPath == null) { credentials.walletInfo!.derivationPath = "m/0'/1"; }