Hi,
this is my code snippet :
const childProcess = spawn(‘npx’, [
‘hardhat’,
‘run’,
‘deploy.js’,
‘–network’,
‘polygonMumbai’
], {
cwd: deployScriptPath,
env: {
HARDHAT_CONFIG_PATH: hardhatConfigPath,
// Pass variables as environment variables
CONTRACT_NAME: req.body.contractName,
CONTRACT_SYMBOL: req.body.contractSymbol,
TOKEN_TRANSFER_ADDRESS: req.body.tokenTransferAddress,
TOTAL_SUPPLY: req.body.totalSupply,
USER_ADDRESS: req.body.userAddress,
GET_LAST_PAYMENT_RECORD_INDEX: req.body.getLastPaymentRecordIndex
},
});
Pls help me to solve the issue.