Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- contract MyContractFactory is Ownable {
- function create(...) onlyOwner public returns (MyContract) {
- return new MyContract(...);
- }
- }
- contract MyContractFactory is Ownable {
- function create(...) onlyOwner public returns (MyContract) {
- MyContract myContract = new MyContract(...);
- myContract.transferOwnership(msg.sender);
- return myContract;
- }
- }
Add Comment
Please, Sign In to add comment