diff --git a/web3/_utils/contracts.py b/web3/_utils/contracts.py index a55bd8d04d..2fb715f1eb 100644 --- a/web3/_utils/contracts.py +++ b/web3/_utils/contracts.py @@ -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 """ diff --git a/web3/_utils/transactions.py b/web3/_utils/transactions.py index fcef403145..14f844ec45 100644 --- a/web3/_utils/transactions.py +++ b/web3/_utils/transactions.py @@ -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: diff --git a/web3/_utils/utility_methods.py b/web3/_utils/utility_methods.py index 1d940c1245..37c1e455e1 100644 --- a/web3/_utils/utility_methods.py +++ b/web3/_utils/utility_methods.py @@ -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 @@ -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 - ) + ) \ No newline at end of file