mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not call ABIEncoderV2 experimental.
This commit is contained in:
@@ -416,7 +416,7 @@ void ContractLevelChecker::checkBaseABICompatibility(ContractDefinition const& _
|
||||
for (TypePointer const& paramType: func.second->parameterTypes() + func.second->parameterTypes())
|
||||
if (!TypeChecker::typeSupportedByOldABIEncoder(*paramType, false))
|
||||
{
|
||||
errors.append("Type only supported by the new experimental ABI encoder", currentLoc);
|
||||
errors.append("Type only supported by ABIEncoderV2", currentLoc);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -427,7 +427,7 @@ void ContractLevelChecker::checkBaseABICompatibility(ContractDefinition const& _
|
||||
errors,
|
||||
std::string("Contract \"") +
|
||||
_contract.name() +
|
||||
"\" does not use the new experimental ABI encoder but wants to inherit from a contract " +
|
||||
"\" does not use ABIEncoderV2 but wants to inherit from a contract " +
|
||||
"which uses types that require it. " +
|
||||
"Use \"pragma experimental ABIEncoderV2;\" for the inheriting contract as well to enable the feature."
|
||||
);
|
||||
|
||||
@@ -380,7 +380,7 @@ bool TypeChecker::visit(FunctionDefinition const& _function)
|
||||
)
|
||||
m_errorReporter.typeError(
|
||||
var.location(),
|
||||
"This type is only supported in the new experimental ABI encoder. "
|
||||
"This type is only supported in ABIEncoderV2. "
|
||||
"Use \"pragma experimental ABIEncoderV2;\" to enable the feature."
|
||||
);
|
||||
};
|
||||
@@ -509,7 +509,7 @@ bool TypeChecker::visit(VariableDeclaration const& _variable)
|
||||
unsupportedTypes.emplace_back(param->toString());
|
||||
if (!unsupportedTypes.empty())
|
||||
m_errorReporter.typeError(_variable.location(),
|
||||
"The following types are only supported for getters in the new experimental ABI encoder: " +
|
||||
"The following types are only supported for getters in ABIEncoderV2: " +
|
||||
joinHumanReadable(unsupportedTypes) +
|
||||
". Either remove \"public\" or use \"pragma experimental ABIEncoderV2;\" to enable the feature."
|
||||
);
|
||||
@@ -620,7 +620,7 @@ bool TypeChecker::visit(EventDefinition const& _eventDef)
|
||||
)
|
||||
m_errorReporter.typeError(
|
||||
var->location(),
|
||||
"This type is only supported in the new experimental ABI encoder. "
|
||||
"This type is only supported in ABIEncoderV2. "
|
||||
"Use \"pragma experimental ABIEncoderV2;\" to enable the feature."
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user