Guest User

Untitled

a guest
May 25th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. contract MyContractFactory is Ownable {
  2. function create(...) onlyOwner public returns (MyContract) {
  3. return new MyContract(...);
  4. }
  5. }
  6.  
  7. contract MyContractFactory is Ownable {
  8. function create(...) onlyOwner public returns (MyContract) {
  9. MyContract myContract = new MyContract(...);
  10. myContract.transferOwnership(msg.sender);
  11. return myContract;
  12. }
  13. }
Add Comment
Please, Sign In to add comment