Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pragma solidity ^0.5.1;
- //
- // Factory general info
- //
- address Admin;
- constructor () public {
- Admin = msg.sender;
- }
- function createNewContract(string memory Name, string memory Type, uint Fee) public returns(YourContract) {
- address YourContract = address(new YourContract(Name, Type, Fee));
- }
- pragma solidity ^0.5.1;
- //
- // The state variables that per now are undefined
- //
- string public Name;
- string public Type;
- uint public Fee;
- address owner;
- //
- // the constructor that pulls info from the function
- //
- constructor(string memory Name, string memory Type, uint Fee) public {
- owner = msg.sender;
- Name = Name;
- Type = Type;
- Fee = Fee;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement