We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa9cc19 commit 81e3d6cCopy full SHA for 81e3d6c
src/services/wallet/index.ts
@@ -110,10 +110,18 @@ function generateWalletFromMnemonic(args: GenerateWalletFromMnemonicPayload) {
110
throw new Error('Invalid network');
111
}
112
113
- return helper.generateWalletFromMnemonic(
114
- args.mnemonic,
115
- args.derivationPath
116
- );
+ if (args.network.startsWith('bitcoin')) {
+ return helper.generateWalletFromMnemonic(
+ args.network,
+ args.mnemonic,
117
+ args.derivationPath
118
+ );
119
+ } else {
120
121
122
123
124
+ }
125
} catch (error) {
126
throw error;
127
0 commit comments