Returning fixed length array from contract function

GlasswalkerGlasswalker CanadaMember Posts: 7
Ok, so I was under the impression that a function can return (externally to a client calling via transaction) an array.

But using the web compiler, I'm unable to get it to return anything other than '0'

I simplified to a basic use-case to verify, and this code compiled through the web compiler, only returns '0' instead of an array of uint8[10] as expected.

Anyone able to shed some light on this for me? It's a fairly critical aspect of the dapp I'm developing.


contract testArray { function getArray() returns(uint8[10] aData) { for(uint i=0;i
Sign In or Register to comment.