Comparing version 4.0.0 to 4.1.0
@@ -107,2 +107,3 @@ /// <reference types="bn.js" /> | ||
password?: Maybe<string>; | ||
type?: Maybe<WalletContractType>; | ||
}): Promise<{ | ||
@@ -109,0 +110,0 @@ mnemonic: string[]; |
@@ -143,3 +143,4 @@ "use strict"; | ||
let key = await (0, ton_crypto_1.mnemonicToWalletKey)(mnemonic, args.password); | ||
let wallet = await Wallet_1.Wallet.openDefault(this, args.workchain, key.secretKey); | ||
let kind = args.type || 'org.ton.wallets.v3'; | ||
let wallet = await Wallet_1.Wallet.openByType(this, args.workchain, key.secretKey, kind); | ||
return { | ||
@@ -146,0 +147,0 @@ mnemonic, |
{ | ||
"name": "ton", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"repository": "https://github.com/ex3ndr/ton.git", | ||
@@ -5,0 +5,0 @@ "author": "Steve Korshakov <steve@korshakov.com>", |
157629
4122