Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions web3/_utils/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ def prepare_transaction(
) -> TxParams:
"""
Returns a dictionary of the transaction that could be used to call this
function.

TODO: make this a public API
TODO: add new prepare_deploy_transaction API
"""
Expand Down
2 changes: 1 addition & 1 deletion web3/_utils/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def prepare_replacement_transaction(
replacement_transaction["nonce"] != original_transaction["nonce"]
):
raise Web3ValueError(
"Supplied nonce in new_transaction must match the pending transaction"
"Supplied nonce in replacement_transaction must match the pending transaction"
)

if "nonce" not in replacement_transaction:
Expand Down
4 changes: 2 additions & 2 deletions web3/_utils/utility_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def either_set_is_a_subset(
Returns a bool based on whether two sets might have some differences but are mostly
the same. This can be useful when comparing formatters to an actual response for
formatting.

:param set1: A set of values.
:param set2: A second set of values.
:param percentage: The percentage of either set that must be present in the
Expand All @@ -79,4 +79,4 @@ def either_set_is_a_subset(
return (
len(set1.intersection(set2)) >= len(set1) * threshold
or len(set2.intersection(set1)) >= len(set2) * threshold
)
)