raineorshine
8/5/2016 - 3:59 PM

VM cannot read variable-sized data from external function calls.

VM cannot read variable-sized data from external function calls.

contract A {
  bytes8[] stuff;
  function get() constant returns(bytes8[]) {
    return stuff;
  }
}

contract B {
  A a;
  bytes8[] mystuff;
  function assign(address _a) {
      a = A(_a);
  }
  
  function copyToMemory() {
    bytes8[] memory stuff = a.get();
  }
  
  function CopyToStorage() {
    mystuff = a.get();
  }
}