From 68aced7fe9520287280482a6f7c77a32a86a1217 Mon Sep 17 00:00:00 2001 From: Crawford Leeds Date: Sat, 13 Jul 2019 17:05:04 -0600 Subject: [PATCH] clarify in docs the return of Eth.sendRawTransaction() as a HexBytes object, not a string. --- docs/web3.eth.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/web3.eth.rst b/docs/web3.eth.rst index c1446af5e5..f5cbd708cc 100644 --- a/docs/web3.eth.rst +++ b/docs/web3.eth.rst @@ -236,7 +236,7 @@ The following methods are available on the ``web3.eth`` namespace. }) * Merkle proof verification using py-trie. - + The following example verifies that the values returned in the AttributeDict are included in the state of given trie ``root``. .. code-block:: python @@ -278,7 +278,7 @@ The following methods are available on the ``web3.eth`` namespace. ) rlp_account = rlp.encode(acc) trie_key = keccak(bytes.fromhex(proof.address[2:])) - + assert rlp_account == HexaryTrie.get_from_proof( root, trie_key, format_proof_nodes(proof.accountProof) ), "Failed to verify account proof {}".format(proof.address) @@ -639,7 +639,7 @@ The following methods are available on the ``web3.eth`` namespace. * Delegates to ``eth_sendRawTransaction`` RPC Method - Sends a signed and serialized transaction. Returns the transaction hash. + Sends a signed and serialized transaction. Returns the transaction hash as a HexBytes object. .. code-block:: python @@ -654,7 +654,7 @@ The following methods are available on the ``web3.eth`` namespace. private_key_for_senders_account, ) >>> w3.eth.sendRawTransaction(signed_txn.rawTransaction) - '0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331' + HexBytes('0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331') .. py:method:: Eth.replaceTransaction(transaction_hash, new_transaction)