diff --git a/01-wallet/test/npmton/step7.expected.txt b/01-wallet/test/npmton/step7.expected.txt index 0dbfb77..857673d 100644 --- a/01-wallet/test/npmton/step7.expected.txt +++ b/01-wallet/test/npmton/step7.expected.txt @@ -1,2 +1,2 @@ -kQCJRglfvsQzAIF0UAhkYH6zkdGPFxVNYMH1nPTN_UpDqEFK +kQBqDnstKfW_YP0YN6kt3uMzSwH1FT_UM7cFyhuw6my3c3Id workchain: 0 diff --git a/01-wallet/test/npmton/step7.ts b/01-wallet/test/npmton/step7.ts index 0cd05e4..b6596ff 100644 --- a/01-wallet/test/npmton/step7.ts +++ b/01-wallet/test/npmton/step7.ts @@ -5,8 +5,8 @@ import { mnemonicToWalletKey } from "@ton/crypto"; 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) + // Update step7.expected.txt before running the test, since it depends on your wallet address + const mnemonic = process.env.MNEMONIC; // your 24 secret words (replace ... with the rest of the words) const key = await mnemonicToWalletKey(mnemonic!.split(" ")); const wallet = WalletContractV4.create({ publicKey: key.publicKey, workchain: 0 }); @@ -17,4 +17,4 @@ async function main() { console.log("workchain:", wallet.address.workChain); } -main(); \ No newline at end of file +main(); diff --git a/01-wallet/test/tonweb/step7.expected.txt b/01-wallet/test/tonweb/step7.expected.txt index 0dbfb77..857673d 100644 --- a/01-wallet/test/tonweb/step7.expected.txt +++ b/01-wallet/test/tonweb/step7.expected.txt @@ -1,2 +1,2 @@ -kQCJRglfvsQzAIF0UAhkYH6zkdGPFxVNYMH1nPTN_UpDqEFK +kQBqDnstKfW_YP0YN6kt3uMzSwH1FT_UM7cFyhuw6my3c3Id workchain: 0 diff --git a/01-wallet/test/tonweb/step7.ts b/01-wallet/test/tonweb/step7.ts index 3c670af..4f270d8 100644 --- a/01-wallet/test/tonweb/step7.ts +++ b/01-wallet/test/tonweb/step7.ts @@ -5,6 +5,7 @@ import { mnemonicToKeyPair } from "tonweb-mnemonic"; import TonWeb from "tonweb"; async function main() { + // Update step7.expected.txt before running the test, since it depends on your wallet address const mnemonic = process.env.MNEMONIC; // your 24 secret words (replace ... with the rest of the words) const key = await mnemonicToKeyPair(mnemonic!.split(" ")); diff --git a/02-contract/test/index.sh b/02-contract/test/index.sh index 334a99e..e9e3d6e 100755 --- a/02-contract/test/index.sh +++ b/02-contract/test/index.sh @@ -5,7 +5,7 @@ npm install ts-node npm install @ton-community/func-js npm install ton ton-core ton-crypto npm install @orbs-network/ton-access -npx func-js stdlib.fc counter.fc --boc counter.cell +npx func-js counter.fc --boc counter.cell npx ts-node deploy.step8.ts > deploy.step8.output.txt COUNTER_ADDRESS=`cut -d : -s -f 2 < deploy.step8.output.txt` npx ts-node step9.ts > step9.output.txt diff step9.output.txt step9.expected.txt