Guest User

Untitled

a guest
Jan 17th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function getArray() external view returns(uint[] memory result) {
  2. uint counter = 0;
  3. result = new uint[](3);
  4. for (uint i = 0; i <= 3; i++) {
  5. result[counter] = i;
  6. counter++;
  7. }
  8. }
  9.  
  10. uint[] r = contractA.getArray();
  11.  
  12. TypeError: Type inaccessible dynamic type is not implicitly convertible to expected type uint256[] storage pointer.
Add Comment
Please, Sign In to add comment