Created
June 13, 2016 21:17
-
-
Save anonymous/38ede11d4d7780c78904ac53249064ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract Creator { | |
function newContract(bytes data) public returns (address) { | |
address theNewContract; | |
uint s = data.length; | |
assembly { | |
calldatacopy(mload(0x40), 68, s) | |
theNewContract := create(callvalue, mload(0x40), s) | |
} | |
return theNewContract; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment