@@ -19,6 +19,7 @@ const multiContributorAddress = "0x36Ee2Da54a7E727cC996A441826BBEdda6336B71";
1919
2020// Configuration constants
2121const SHOULD_VERIFY_CONTRACTS = true ;
22+ const SHOULD_TRANSFER_FUNDS = false ;
2223
2324async 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