Skip to content

Commit 490ac80

Browse files
committed
flag for disabling transfer
1 parent 856c6f8 commit 490ac80

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

scripts/deploy-investor-vesting.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const multiContributorAddress = "0x36Ee2Da54a7E727cC996A441826BBEdda6336B71";
1919

2020
// Configuration constants
2121
const SHOULD_VERIFY_CONTRACTS = true;
22+
const SHOULD_TRANSFER_FUNDS = false;
2223

2324
async function verifyContract(address, constructorArgs) {
2425
console.log(chalk.yellow("\nVerifying contract on Etherscan..."));
@@ -92,6 +93,8 @@ async function main() {
9293
}
9394

9495
const deployedContracts = [];
96+
97+
const seshContract = await hre.ethers.getContractAt("SESH", seshAddress);
9598

9699
// Deploy contracts for each investor
97100
for (const record of records) {
@@ -140,13 +143,13 @@ async function main() {
140143
await verifyContract(vestingAddress, constructorArgs);
141144
}
142145

143-
144-
const seshContract = await hre.ethers.getContractAt("SESH", seshAddress);
145-
const amount = hre.ethers.parseUnits(record.amount, 9); // Assuming 9 decimals for SESH
146-
const transferTx = await seshContract.transfer(vestingAddress, amount);
147-
await transferTx.wait();
148-
149-
console.log(chalk.green("Tokens transferred:"), chalk.yellow(record.amount), "SESH");
146+
if (SHOULD_TRANSFER_FUNDS) {
147+
const amount = hre.ethers.parseUnits(record.amount, 9); // Assuming 9 decimals for SESH
148+
const transferTx = await seshContract.transfer(vestingAddress, amount);
149+
await transferTx.wait();
150+
151+
console.log(chalk.green("Tokens transferred:"), chalk.yellow(record.amount), "SESH");
152+
}
150153

151154
deployedContracts.push({
152155
beneficiary: record.beneficiary,

0 commit comments

Comments
 (0)