Skip to content

Instantly share code, notes, and snippets.

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