Skip to content

Commit

Permalink
⚡ fix message error!
Browse files Browse the repository at this point in the history
Signed-off-by: Harmouch101 <[email protected]>
  • Loading branch information
wiseaidev committed Mar 10, 2022
1 parent 8a47292 commit 7cbf7b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web3/_utils/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7cbf7b3

Please sign in to comment.