Guys i need help with a simple case. I have a deployment script. There are two contracts. First contract is deployed. Now i have to pass the first contract to the second one in the contractor.
Sending an address works perfectly, but sending the deployed contract itself as an object doesn't work. Is it a wrong approach ?
Jul 22, 2021, 10:46 AM
yes you need to send the address only
Jul 22, 2021, 10:55 AM
Alright. I was checking the smart contract code of somebody, and they had a part like this in their deployment script.
const S = await ethers.getContractFactory("S");
const se = await S.deploy();
await se.deployed();
const M = await ethers.getContractFactory("M");
const ma= await M.deploy(se) //This gives error
await ma.deployed();
so this is technically wrong ?
const S = await ethers.getContractFactory("S");
const se = await S.deploy();
await se.deployed();
const M = await ethers.getContractFactory("M");
const ma= await M.deploy(se) //This gives error
await ma.deployed();
so this is technically wrong ?
I guess you are missing a coma ?
after 100 should be coma
No problem
It should show you the line also of the missing symbol or wrong put
Remove the round bracket
after coma
(msg.value, 100, "whater")
Jul 22, 2021, 11:58 AM