github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/execution/testdata/public-length.sol (about) 1 pragma solidity 0.4.24; 2 contract A { 3 uint[] public nums; 4 function getNumLength() returns(uint) { 5 return nums.length; 6 } 7 } 8 9 contract B { 10 A a; 11 function test() constant returns (uint) { 12 a=new A(); 13 // length is not accessible on public array from other contract 14 //return a.nums.length(); 15 return a.getNumLength(); 16 } 17 }