Change array too large error message as it is valid for non-calldata too

This commit is contained in:
Alex Beregszaszi
2017-09-05 22:38:45 +01:00
parent f242331cc0
commit 3326a2282e
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -623,7 +623,7 @@ bool TypeChecker::visit(VariableDeclaration const& _variable)
(arrayType->location() == DataLocation::CallData)) &&
!arrayType->validForCalldata()
)
m_errorReporter.typeError(_variable.location(), "Array is too large to be encoded as calldata.");
m_errorReporter.typeError(_variable.location(), "Array is too large to be encoded.");
return false;
}