Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getArray() external view returns(uint[] memory result) {
- uint counter = 0;
- result = new uint[](3);
- for (uint i = 0; i <= 3; i++) {
- result[counter] = i;
- counter++;
- }
- }
- uint[] r = contractA.getArray();
- TypeError: Type inaccessible dynamic type is not implicitly convertible to expected type uint256[] storage pointer.
Add Comment
Please, Sign In to add comment