Allow cleanup for mappings (do nothing).

This commit is contained in:
chriseth
2019-02-18 18:50:22 +01:00
parent 1b6d87c5bd
commit c690f679cb
3 changed files with 9 additions and 3 deletions
+1
View File
@@ -308,6 +308,7 @@ string ABIFunctions::cleanupFunction(Type const& _type, bool _revertOnFailure)
break;
case Type::Category::Array:
case Type::Category::Struct:
case Type::Category::Mapping:
solAssert(_type.dataStoredIn(DataLocation::Storage), "Cleanup requested for non-storage reference type.");
templ("body", "cleaned := value");
break;