Skip to content

Instantly share code, notes, and snippets.

@bulgakovk
Created November 22, 2017 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bulgakovk/326f04c6d2c7a9523c30a62901a49ff2 to your computer and use it in GitHub Desktop.
Save bulgakovk/326f04c6d2c7a9523c30a62901a49ff2 to your computer and use it in GitHub Desktop.
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