Nested structs that are part of a mapping no longer compile with 0.5.0 (Test repo link included) · Issue #5520 · ethereum/solidity (original) (raw)
With the 5.0 version of solc
, if a host struct nests another struct, and the host struct is the value in a mapping, the compiler emits a fatal compilation error using the UnimplementedFeature error code. This code did work in version v0.4.21.
UnimplementedFeatureError: Encoding type "struct TestNestedStructInMapping.structNested memory" not yet implemented.
Compilation failed. See above.
Truffle v5.0.0-beta.2 (core: 5.0.0-beta.2)
Solidity v0.5.0 (solc-js)
Node v8.11.1
Here is a link to a public repo with a minimal project that demonstrates the error: