From b6bf6089c5022a06cc8bc804d83b3549927ade06 Mon Sep 17 00:00:00 2001 From: sun-rhythms Date: Fri, 13 Oct 2023 12:02:24 +0300 Subject: [PATCH] Update ton libs and fix tests --- 01-wallet/test/npmton/step7.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/01-wallet/test/npmton/step7.ts b/01-wallet/test/npmton/step7.ts index 0cd05e4..293f638 100644 --- a/01-wallet/test/npmton/step7.ts +++ b/01-wallet/test/npmton/step7.ts @@ -6,8 +6,11 @@ import { WalletContractV4 } from "@ton/ton"; async function main() { // open wallet v4 (notice the correct wallet version here) - const mnemonic = process.env.MNEMONIC;; // your 24 secret words (replace ... with the rest of the words) + const mnemonic = process.env.MNEMONIC; // your 24 secret words (replace ... with the rest of the words) + console.log('mnemonic is - ', mnemonic); + const key = await mnemonicToWalletKey(mnemonic!.split(" ")); + console.log('key is - ', key); const wallet = WalletContractV4.create({ publicKey: key.publicKey, workchain: 0 }); // print wallet address