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 b6bf608 commit f51ade2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions 01-wallet/test/npmton/step7.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 01-wallet/test/tonweb/step7.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f51ade2

Please sign in to comment.