Browse Source

Minor fixes

master
Tal Kol 3 years ago
parent
commit
2acf7ba0b2
  1. 5
      build/deploy.ts
  2. 2
      build/main.deploy.ts

5
build/deploy.ts

@ -14,7 +14,6 @@ import glob from "fast-glob";
import { Address, Cell, CellMessage, CommonMessageInfo, fromNano, InternalMessage, StateInit, toNano } from "ton";
import { TonClient, WalletContract, WalletV3R2Source, contractAddress, SendMode } from "ton";
import { mnemonicNew, mnemonicToWalletKey } from "ton-crypto";
import { postDeployTest } from "./main.deploy";
async function main() {
console.log(`=================================================================`);
@ -68,7 +67,7 @@ async function main() {
const rootContracts = glob.sync(["build/*.deploy.ts"]);
for (const rootContract of rootContracts) {
// deploy a new root contract
console.log(`\n* Found root contract to deploy '${rootContract}':`);
console.log(`\n* Found root contract '${rootContract} - let's deploy it':`);
const contractName = path.parse(path.parse(rootContract).name).name;
// prepare the init data cell
@ -158,5 +157,5 @@ async function performPostDeploymentTest(rootContract: string, deployInitScript:
return;
}
console.log(` - Running a post deployment test:`);
await postDeployTest(walletContract, secretKey, newContractAddress);
await deployInitScript.postDeployTest(walletContract, secretKey, newContractAddress);
}

2
build/main.deploy.ts

@ -6,7 +6,7 @@ import { sendInternalMessageWithWallet } from "../test/helpers";
export function initData() {
return main.data({
ownerAddress: Address.parseFriendly("EQCD39VS5jcptHL8vMjEXrzGaRcCVYto7HUn4bpAOg8xqB2N").address,
counter: 0,
counter: 10,
});
}

Loading…
Cancel
Save