mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Changed instaces of isByteArrayOrString() to isByteArray() where it's only supposed to return a True for Bytes Type
This commit is contained in:
@@ -992,7 +992,7 @@ void CompilerUtils::convertType(
|
||||
if (_targetType.category() == Type::Category::FixedBytes)
|
||||
{
|
||||
solAssert(
|
||||
typeOnStack.isByteArrayOrString() && !typeOnStack.isString(),
|
||||
typeOnStack.isByteArray(),
|
||||
"Array types other than bytes not convertible to bytesNN."
|
||||
);
|
||||
solAssert(typeOnStack.isDynamicallySized());
|
||||
@@ -1119,7 +1119,7 @@ void CompilerUtils::convertType(
|
||||
if (_targetType.category() == Type::Category::FixedBytes)
|
||||
{
|
||||
solAssert(
|
||||
typeOnStack.arrayType().isByteArrayOrString() && !typeOnStack.arrayType().isString(),
|
||||
typeOnStack.arrayType().isByteArray(),
|
||||
"Array types other than bytes not convertible to bytesNN."
|
||||
);
|
||||
solAssert(typeOnStack.isDynamicallySized());
|
||||
|
||||
Reference in New Issue
Block a user