mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix checkBaseABICompatibility() to make it actually check return parameters and not just ordinary parameters twice
This commit is contained in:
@@ -474,7 +474,7 @@ void ContractLevelChecker::checkBaseABICompatibility(ContractDefinition const& _
|
||||
|
||||
auto const& currentLoc = func.second->declaration().location();
|
||||
|
||||
for (TypePointer const& paramType: func.second->parameterTypes() + func.second->parameterTypes())
|
||||
for (TypePointer const& paramType: func.second->parameterTypes() + func.second->returnParameterTypes())
|
||||
if (!TypeChecker::typeSupportedByOldABIEncoder(*paramType, false))
|
||||
{
|
||||
errors.append("Type only supported by ABIEncoderV2", currentLoc);
|
||||
|
||||
Reference in New Issue
Block a user