Fix assignment of struct containing array of mappings

This commit is contained in:
mingchuan
2019-05-25 01:33:49 +08:00
parent 2a2cea08dd
commit bf8af89bba
6 changed files with 69 additions and 5 deletions
+2 -1
View File
@@ -2068,7 +2068,8 @@ MemberList::MemberMap StructType::nativeMembers(ContractDefinition const*) const
{
TypePointer type = variable->annotation().type;
solAssert(type, "");
// Skip all mapping members if we are not in storage.
// If we are not in storage, skip all members that cannot live outside of storage,
// ex. mappings and array of mappings
if (location() != DataLocation::Storage && !type->canLiveOutsideStorage())
continue;
members.emplace_back(