Answers for "contract to create a contract solididity"

0

contract to create a contract solididity

pragma solidity ^0.5.0;
import "./DaughterContract.sol";
contract MomContract {
 string public name;
 uint public age;
 DaughterContract public daughter;
 constructor(
  string memory _momsName,
  uint _momsAge,
  string memory _daughtersName,
  uint _daughtersAge
 )
  public
 {
  daughter = new DaughterContract(_daughtersName, _daughtersAge);
  name = _momsName;
  age = _momsAge;
 }
}
Posted by: Guest on September-16-2021

Code answers related to "contract to create a contract solididity"

Browse Popular Code Answers by Language