2

Using bytes[] foo as a function argument

contract b {

function c(bytes[] foo) {

}

}

in https://remix.ethereum.org gives error

UnimplementedFeatureError: Nested arrays not yet implemented.

Why?

2

bytes on its own is already a dynamically sized byte array.

Adding an additional [] makes it a dynamically sized array of dynamically sized byte arrays.

Please refer to the manual:

http://solidity.readthedocs.io/en/develop/types.html#dynamically-sized-byte-array

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.