@@ -214,6 +214,7 @@ is provided by :meth:`w3.eth.sign() <web3.eth.Eth.sign>`.
214214 >>> signed_message = w3.eth.account.sign_message(message, private_key = private_key)
215215 >>> signed_message
216216 SignedMessage(messageHash=HexBytes('0x1476abb745d423bf09273f1afd887d951181d25adc66c4834a70491911b7f750'),
217+ message_hash=HexBytes('0x1476abb745d423bf09273f1afd887d951181d25adc66c4834a70491911b7f750'),
217218 r=104389933075820307925104709181714897380569894203213074526835978196648170704563,
218219 s=28205917190874851400050446352651915501321657673772411533993420917949420456142,
219220 v=28,
@@ -251,7 +252,7 @@ You might have produced the signed_message locally, as in
251252 ... return Web3.to_hex(Web3.to_bytes(val).rjust(32 , b ' \0 ' ))
252253
253254 >>> ec_recover_args = (msghash, v, r, s) = (
254- ... Web3.to_hex(signed_message.messageHash ),
255+ ... Web3.to_hex(signed_message.message_hash ),
255256 ... signed_message.v,
256257 ... to_32byte_hex(signed_message.r),
257258 ... to_32byte_hex(signed_message.s),
@@ -356,7 +357,7 @@ with :meth:`~web3.eth.Eth.send_raw_transaction`.
356357 ... }
357358 >>> key = ' 0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318'
358359 >>> signed = w3.eth.account.sign_transaction(transaction, key)
359- >>> signed.rawTransaction
360+ >>> signed.raw_transaction
360361 HexBytes('0x02f8e20180843b9aca008477359400831e848094f0109fc8df283027b6285cc889f5aa624eac1f55843b9aca0080f872f85994de0b295669a9fd93d5f28d9ec85e40f4cb697baef842a00000000000000000000000000000000000000000000000000000000000000003a00000000000000000000000000000000000000000000000000000000000000007d694bb9bc244d798123fde783fcc1c72d3bb8c189413c001a0b9ec671ccee417ff79e06e9e52bfa82b37cf1145affde486006072ca7a11cf8da0484a9beea46ff6a90ac76e7bbf3718db16a8b4b09cef477fb86cf4e123d98fde')
361362 >>> signed.hash
362363 HexBytes('0xe85ce7efa52c16cb5c469c7bde54fbd4911639fdfde08003f65525a85076d915')
@@ -368,7 +369,7 @@ with :meth:`~web3.eth.Eth.send_raw_transaction`.
368369 1
369370
370371 # When you run send_raw_transaction, you get back the hash of the transaction:
371- >>> w3.eth.send_raw_transaction(signed.rawTransaction ) # doctest: +SKIP
372+ >>> w3.eth.send_raw_transaction(signed.raw_transaction ) # doctest: +SKIP
372373 '0xe85ce7efa52c16cb5c469c7bde54fbd4911639fdfde08003f65525a85076d915'
373374
374375Sign a Contract Transaction
@@ -429,7 +430,7 @@ To sign a transaction locally that will invoke a smart contract:
429430 >>> signed_txn = w3.eth.account.sign_transaction(unicorn_txn, private_key = private_key)
430431 >>> signed_txn.hash
431432 HexBytes('0x748db062639a45e519dba934fce09c367c92043867409160c9989673439dc817')
432- >>> signed_txn.rawTransaction
433+ >>> signed_txn.raw_transaction
433434 HexBytes('0x02f8b00180843b9aca0084773594008301117094fb6916095ca1df60bb79ce92ce3ea74c37c5d35980b844a9059cbb000000000000000000000000fb6916095ca1df60bb79ce92ce3ea74c37c5d3590000000000000000000000000000000000000000000000000000000000000001c001a0cec4150e52898cf1295cc4020ac0316cbf186071e7cdc5ec44eeb7cdda05afa2a06b0b3a09c7fb0112123c0bef1fd6334853a9dcf3cb5bab3ccd1f5baae926d449')
434435 >>> signed_txn.r
435436 93522894155654168208483453926995743737629589441154283159505514235904280342434
@@ -438,8 +439,8 @@ To sign a transaction locally that will invoke a smart contract:
438439 >>> signed_txn.v
439440 1
440441
441- >>> w3.eth.send_raw_transaction(signed_txn.rawTransaction ) # doctest: +SKIP
442+ >>> w3.eth.send_raw_transaction(signed_txn.raw_transaction ) # doctest: +SKIP
442443
443444 # When you run send_raw_transaction, you get the same result as the hash of the transaction:
444- >>> w3.to_hex(w3.keccak(signed_txn.rawTransaction ))
445+ >>> w3.to_hex(w3.keccak(signed_txn.raw_transaction ))
445446 '0x748db062639a45e519dba934fce09c367c92043867409160c9989673439dc817'
0 commit comments