Created
November 22, 2017 12:06
-
-
Save bulgakovk/326f04c6d2c7a9523c30a62901a49ff2 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 LiveFactory { | |
function deployCode(bytes _code) returns (address deployedAddress) { | |
assembly { | |
deployedAddress := create(0, add(_code, 0x20), mload(_code)) | |
} | |
ContractDeployed(deployedAddress); | |
} | |
event ContractDeployed(address deployedAddress); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment