Call the constructor in Solidity
Feb 7, 2022
Thanks to grandzero !
Repo: https://github.com/grandzero/SecureumBootcamp/blob/main/solidity101/contracts/Constructor.sol
Aim : Call constructor from outside and inside
We deploy C1 contract with “10”
This is result. We called the constructor from outside.
We deploy C2 contract with “15”
Clicking the newContract button and take the address
You paste this address to the “At Address” section, choose C1 contract and enter 20 value. Deploy it.
Now we have new contract