small fix

This commit is contained in:
fosse 2023-09-08 12:38:44 -04:00
parent 90c120dcc5
commit 6e578ee2f5

View file

@ -37,8 +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:
// TODO: figure out what the default derivation path is if (credentials.walletInfo!.derivationPath == null) {
credentials.walletInfo!.derivationPath = "m/0'/1"; credentials.walletInfo!.derivationPath = "m/0'/1";
}
final wallet = await BitcoinWalletBase.create( final wallet = await BitcoinWalletBase.create(
mnemonic: await generateElectrumMnemonic(strength: 132), mnemonic: await generateElectrumMnemonic(strength: 132),
password: credentials.password!, password: credentials.password!,