Skip to content

Commit

Permalink
Update ton libs and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-rhythms committed Oct 13, 2023
1 parent 4c2f8f6 commit b6bf608
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 01-wallet/test/npmton/step7.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6bf608

Please sign in to comment.