Closed cyberhorsey closed 2 years ago
additionally, is there any way to do a bytes, bytes
type?
ie: i have (bytes account, bytes storage = abi.decode(b)
where b
is a bytes[]
in my Solidity contract.
In Ethers, I would do:
ethers.defaultAbiCoder.Encode(["bytes", "bytes"], [account, storage]
gives error cannot get key camelCase, yet removing the capital C works.
Merging your PR, thank you for the contribution!
additionally, is there any way to do a bytes, bytes type?
Yes, it should be possible doing something like:
t := abi.MustNewType("tuple(bytes, bytes)")
t.Decode([]byte{...})
gives error
cannot get key camelCase
, yet removing the capital C works.