Hi, I have a question about creating new contract in solidity,
function createNew() external {
addr = new ChildContract();
emit NewContract(addr);
}
I noticed that creating new contract takes too much time on goerli, so addr is always address, not a contract.
Is there any way to wait until the child contract has been deployed and return the function?

Apr 18, 2022, 8:48 PM
How do you expect us to know what is inside ChildContract() man.
Apr 19, 2022, 1:46 AM
Thank you for your reply, ChildContract constructor only has initialize command, one or two line. I looks like because deploying contract too slow. no?
Apr 19, 2022, 6:24 AM

© 2024 Draquery.com All rights reserved.