@@ -32,21 +32,21 @@ import { SampleTactContract } from "./output/sample_SampleTactContract";
3232import { prepareTactDeployment } from " @tact-lang/deployer" ;
3333
3434// Parameters
35- let testnet = true ; // Flag for testnet or mainnet
36- let packageName = ' sample_SampleTactContract.pkg' ; // Name of your package to deploy
37- let outputPath = path .resolve (__dirname , ' output' ); // Path to output directory
38- let owner = Address .parse (' <put_address_here>' ); // Our sample contract has an owner
39- let init = await SampleTactContract .init (owner ); // Create initial data for our contract
35+ const testnet = true ; // Flag for testnet or mainnet
36+ const packageName = ' sample_SampleTactContract.pkg' ; // Name of your package to deploy
37+ const outputPath = path .resolve (__dirname , ' output' ); // Path to output directory
38+ const owner = Address .parse (' <put_address_here>' ); // Our sample contract has an owner
39+ const init = await SampleTactContract .init (owner ); // Create initial data for our contract
4040
4141// Calculations
42- let address = contractAddress (0 , init ); // Calculate contract address. MUST match with the address in the verifier
43- let data = init .data .toBoc (); // Create init data
44- let pkg = fs .readFileSync ( // Read package file
42+ const address = contractAddress (0 , init ); // Calculate contract address. MUST match with the address in the verifier
43+ const data = init .data .toBoc (); // Create init data
44+ const pkg = fs .readFileSync ( // Read package file
4545 path .resolve (outputPath , packageName )
4646);
4747
4848// Prepare deploy
49- let link = await prepareTactDeployment ({ pkg , data , testnet });
49+ const link = await prepareTactDeployment ({ pkg , data , testnet });
5050
5151// Present a deployment link and contract address
5252console .log (' Address: ' + address .toString ({ testOnly: testnet }));
0 commit comments