Skip to content

Commit

Permalink
Add newsfragment, one more clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes committed Sep 13, 2021
1 parent c448107 commit 6ab16c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/2146.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify some contract ``ValueError`` error messages.
2 changes: 1 addition & 1 deletion web3/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ def check_forbidden_keys_in_transaction(
) -> None:
keys_found = set(transaction.keys()) & set(forbidden_keys)
if keys_found:
raise ValueError("Cannot set '{}' field in transaction".format(', '.join(keys_found)))
raise ValueError("Cannot set '{}' field(s) in transaction".format(', '.join(keys_found)))


class ConciseMethod:
Expand Down

0 comments on commit 6ab16c2

Please sign in to comment.