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?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityUsing 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?
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