Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. pragma solidity ^0.5.1;
  2.  
  3. //
  4. // Factory general info
  5. //
  6. address Admin;
  7.  
  8. constructor () public {
  9. Admin = msg.sender;
  10. }
  11.  
  12. function createNewContract(string memory Name, string memory Type, uint Fee) public returns(YourContract) {
  13. address YourContract = address(new YourContract(Name, Type, Fee));
  14. }
  15.  
  16. pragma solidity ^0.5.1;
  17.  
  18. //
  19. // The state variables that per now are undefined
  20. //
  21. string public Name;
  22. string public Type;
  23. uint public Fee;
  24. address owner;
  25.  
  26. //
  27. // the constructor that pulls info from the function
  28. //
  29. constructor(string memory Name, string memory Type, uint Fee) public {
  30. owner = msg.sender;
  31. Name = Name;
  32. Type = Type;
  33. Fee = Fee;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement