Merge pull request #5953 from ethereum/removeCheckCoveredByAssertion

Remove type check that is covered by assertions.
This commit is contained in:
chriseth 2019-02-07 12:19:14 +01:00 committed by GitHub
commit 9de652ab76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -569,7 +569,7 @@ string ABIFunctions::abiEncodingFunction(
)"); )");
templ("functionName", functionName); templ("functionName", functionName);
if (_from.dataStoredIn(DataLocation::Storage) && to.isValueType()) if (_from.dataStoredIn(DataLocation::Storage))
{ {
// special case: convert storage reference type to value type - this is only // special case: convert storage reference type to value type - this is only
// possible for library calls where we just forward the storage reference // possible for library calls where we just forward the storage reference