mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Change array too large error message as it is valid for non-calldata too
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user