Merge pull request #5957 from ethereum/function-param-fix

Ensure function parameter names always matches parameter types length
This commit is contained in:
chriseth
2019-02-11 15:45:28 +01:00
committed by GitHub
4 changed files with 71 additions and 31 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ BOOST_AUTO_TEST_CASE(type_identifiers)
TypePointer keccak256fun = make_shared<FunctionType>(strings{}, strings{}, FunctionType::Kind::KECCAK256);
BOOST_CHECK_EQUAL(keccak256fun->identifier(), "t_function_keccak256_nonpayable$__$returns$__$");
FunctionType metaFun(TypePointers{keccak256fun}, TypePointers{s.type()});
FunctionType metaFun(TypePointers{keccak256fun}, TypePointers{s.type()}, strings{""}, strings{""});
BOOST_CHECK_EQUAL(metaFun.identifier(), "t_function_internal_nonpayable$_t_function_keccak256_nonpayable$__$returns$__$_$returns$_t_type$_t_struct$_Struct_$3_storage_ptr_$_$");
TypePointer m = make_shared<MappingType>(Type::fromElementaryTypeName("bytes32"), s.type());