Skip to content

Instantly share code, notes, and snippets.

@raineorshine
Created July 30, 2016 19:27
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 raineorshine/35305e0a35e7e1184a6d4d54cbc853d4 to your computer and use it in GitHub Desktop.
Save raineorshine/35305e0a35e7e1184a6d4d54cbc853d4 to your computer and use it in GitHub Desktop.
contract A {
A other;
function Assign(address a) {
other = A(a);
}
function Get() constant returns(bytes8[]) {
bytes8[] stuff;
return stuff;
}
function Copy() {
bytes8[] memory stuff = other.Get();
}
}
contract Test {
function Test() {
A one = new A();
A two = new A();
one.Assign(address(two));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment