@@ -32,21 +32,21 @@ import { SampleTactContract } from "./output/sample_SampleTactContract";
32
32
import { prepareTactDeployment } from " @tact-lang/deployer" ;
33
33
34
34
// 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
40
40
41
41
// 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
45
45
path .resolve (outputPath , packageName )
46
46
);
47
47
48
48
// Prepare deploy
49
- let link = await prepareTactDeployment ({ pkg , data , testnet });
49
+ const link = await prepareTactDeployment ({ pkg , data , testnet });
50
50
51
51
// Present a deployment link and contract address
52
52
console .log (' Address: ' + address .toString ({ testOnly: testnet }));
0 commit comments