Open m-Peter opened 4 months ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This is still relevant, though maybe not for the first release of Flow EVM
Right now, Cadence arrays (fixed & variable sized) are ABI encoded/decoded to Solidity array equivalents. That means we cannot map a Cadence
[UInt8; 4]
type to Soliditybytes4
. To overcome this, we can define a new composite type on theEVM
contract (just like we do forEVM.EVMAddress
) and use it to signify in whatbytes
type we want to encode a Cadence byte array. We should support at minimumbytes
/bytes4
/bytes32
and arrays of these 3.