From f51ade2b01087eba0b9a4aabd9887fc6b703ac86 Mon Sep 17 00:00:00 2001 From: sun-rhythms Date: Fri, 13 Oct 2023 12:08:15 +0300 Subject: [PATCH] Update ton libs and fix tests --- 01-wallet/test/npmton/step7.ts | 5 +---- 01-wallet/test/tonweb/step7.ts | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/01-wallet/test/npmton/step7.ts b/01-wallet/test/npmton/step7.ts index 293f638..c04d8a9 100644 --- a/01-wallet/test/npmton/step7.ts +++ b/01-wallet/test/npmton/step7.ts @@ -6,11 +6,8 @@ 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) - console.log('mnemonic is - ', mnemonic); - + const mnemonic = "memory album during buyer copper until arm forest identify race eyebrow bunker dawn phrase butter knock owner thumb click lottery catalog desk trial copper"; // your 24 secret words (replace ... with the rest of the words) const key = await mnemonicToWalletKey(mnemonic!.split(" ")); - console.log('key is - ', key); const wallet = WalletContractV4.create({ publicKey: key.publicKey, workchain: 0 }); // print wallet address diff --git a/01-wallet/test/tonweb/step7.ts b/01-wallet/test/tonweb/step7.ts index 497be11..2c61974 100644 --- a/01-wallet/test/tonweb/step7.ts +++ b/01-wallet/test/tonweb/step7.ts @@ -5,7 +5,7 @@ import { mnemonicToKeyPair } from "tonweb-mnemonic"; import TonWeb from "tonweb"; async function main() { - const mnemonic = process.env.MNEMONIC; // your 24 secret words (replace ... with the rest of the words) + const mnemonic = "memory album during buyer copper until arm forest identify race eyebrow bunker dawn phrase butter knock owner thumb click lottery catalog desk trial copper"; // your 24 secret words (replace ... with the rest of the words) const key = await mnemonicToKeyPair(mnemonic!.split(" ")); // open wallet v4 (notice the correct wallet version here)