Oz compile - Compilation errors: UnimplementedFeatureErrror solc 0.6.4


I recently started using the ABIEncoderV2 in my contracts. I use it solely to make use of memory structs. I accept memory structs in function calls and I assign to their members in function blocks and I emit the struct or elements thereof in events.

1 Like


The problem was simply due to the fact that solidity cannot use calldata structs anywhere. I thought calldata structs are fine when I do not modify the struct but only read from it, but apparently not. So when I marked all my functions that used the struct public and its data location memory it compiled. Interestingly it compiled even though I still have external functions in solidity interface s that make use of Struct calldata _struct

1 Like