diff --git a/web3/_utils/contracts.py b/web3/_utils/contracts.py index 81ce4b191a..a4ed743ff6 100644 --- a/web3/_utils/contracts.py +++ b/web3/_utils/contracts.py @@ -149,9 +149,9 @@ def find_matching_fn_abi( s_m = 's' if len(matching_identifiers) > 1 else '' message = ( f"\nCould not identify the intended function with name `{fn_identifier}`, positional " - f"argument {s_a} of type `{tuple(map(type, args))}` and keyword argument{s_k} of type " + f"argument{s_a} of type `{tuple(map(type, args))}` and keyword argument{s_k} of type " f"`{valmap(type, kwargs)}`.\nFound {len(matching_identifiers)} function{s_m} with " - f"the name `{fn_identifier}` {matching_function_signatures}{diagnosis}" + f"the name `{fn_identifier}`: {matching_function_signatures}{diagnosis}" ) raise ValidationError(message)