Skip to content

Instantly share code, notes, and snippets.

@djaramillo021
Created April 19, 2017 22:29
Show Gist options
  • Save djaramillo021/26de7fcbcc6e09dcbfe68f00a5f786dd to your computer and use it in GitHub Desktop.
Save djaramillo021/26de7fcbcc6e09dcbfe68f00a5f786dd to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.2;
contract A {
address d;
}
contract ObjectFactory {
event ReturnAddress(address indexed _address);
function createObject() returns (address ) {
address objectAddress= (new A ());
ReturnAddress(objectAddress);
return objectAddress;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment