@@ -345,8 +345,8 @@ async def test_eth_send_raw_transaction(self, async_w3: "Web3") -> None:
345
345
# tx = {'to': '0x0000000000000000000000000000000000000000', 'value': 0, 'nonce': 1, 'gas': 21000, 'gasPrice': 0, 'chainId': 131277322940537} # noqa: E501
346
346
# NOTE: nonce=1 to make txn unique from the non-async version of this test
347
347
raw_txn = HexBytes (
348
- "0xf8650180825208940000000000000000000000000000000000000000808086eecac466e115a0ffdd42d7dee4ac85427468bc616812e49432e285e4e8f5cd9381163ac3b28108a04ec6b0d89ecbd5e89b0399f336ad50f283fafd70e86593250bf5a2adfb93d17e"
349
- ) # noqa: E501
348
+ "0xf8650180825208940000000000000000000000000000000000000000808086eecac466e115a0ffdd42d7dee4ac85427468bc616812e49432e285e4e8f5cd9381163ac3b28108a04ec6b0d89ecbd5e89b0399f336ad50f283fafd70e86593250bf5a2adfb93d17e" # noqa: E501
349
+ )
350
350
expected_hash = HexStr (
351
351
"0x52b0ff9cb472f25872fa8ec6a62fa59454fc2ae7901cfcc6cc89d096f49b8fc1"
352
352
)
@@ -637,7 +637,8 @@ async def test_eth_get_raw_transaction_by_block_raises_error(
637
637
with pytest .raises (
638
638
TransactionNotFound ,
639
639
match = (
640
- f"Transaction index: 0 on block id: { to_hex_if_integer (unknown_block_num_or_hash )!r} "
640
+ f"Transaction index: 0 on block id: "
641
+ f"{ to_hex_if_integer (unknown_block_num_or_hash )!r} "
641
642
f"not found."
642
643
),
643
644
):
@@ -734,8 +735,8 @@ async def test_eth_call_with_override(
734
735
735
736
# override runtime bytecode: `normalFunction` returns `false`
736
737
override_code = HexStr (
737
- "0x6080604052348015600f57600080fd5b5060043610603c5760003560e01c8063185c38a4146041578063c06a97cb146049578063d67e4b84146051575b600080fd5b60476071565b005b604f60df565b005b605760e4565b604051808215151515815260200191505060405180910390f35b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f46756e6374696f6e20686173206265656e2072657665727465642e000000000081525060200191505060405180910390fd5b600080fd5b60008090509056fea2646970667358221220bb71e9e9a2e271cd0fbe833524a3ea67df95f25ea13aef5b0a761fa52b538f1064736f6c63430006010033"
738
- ) # noqa: E501
738
+ "0x6080604052348015600f57600080fd5b5060043610603c5760003560e01c8063185c38a4146041578063c06a97cb146049578063d67e4b84146051575b600080fd5b60476071565b005b604f60df565b005b605760e4565b604051808215151515815260200191505060405180910390f35b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f46756e6374696f6e20686173206265656e2072657665727465642e000000000081525060200191505060405180910390fd5b600080fd5b60008090509056fea2646970667358221220bb71e9e9a2e271cd0fbe833524a3ea67df95f25ea13aef5b0a761fa52b538f1064736f6c63430006010033" # noqa: E501
739
+ )
739
740
call_result = await async_w3 .eth .call ( # type: ignore
740
741
txn_params , "latest" , {revert_contract .address : {"code" : override_code }}
741
742
)
@@ -2544,8 +2545,8 @@ def test_eth_call_with_override(
2544
2545
2545
2546
# override runtime bytecode: `normalFunction` returns `false`
2546
2547
override_code = HexStr (
2547
- "0x6080604052348015600f57600080fd5b5060043610603c5760003560e01c8063185c38a4146041578063c06a97cb146049578063d67e4b84146051575b600080fd5b60476071565b005b604f60df565b005b605760e4565b604051808215151515815260200191505060405180910390f35b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f46756e6374696f6e20686173206265656e2072657665727465642e000000000081525060200191505060405180910390fd5b600080fd5b60008090509056fea2646970667358221220bb71e9e9a2e271cd0fbe833524a3ea67df95f25ea13aef5b0a761fa52b538f1064736f6c63430006010033"
2548
- ) # noqa: E501
2548
+ "0x6080604052348015600f57600080fd5b5060043610603c5760003560e01c8063185c38a4146041578063c06a97cb146049578063d67e4b84146051575b600080fd5b60476071565b005b604f60df565b005b605760e4565b604051808215151515815260200191505060405180910390f35b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f46756e6374696f6e20686173206265656e2072657665727465642e000000000081525060200191505060405180910390fd5b600080fd5b60008090509056fea2646970667358221220bb71e9e9a2e271cd0fbe833524a3ea67df95f25ea13aef5b0a761fa52b538f1064736f6c63430006010033" # noqa: E501
2549
+ )
2549
2550
call_result = w3 .eth .call (
2550
2551
txn_params , "latest" , {revert_contract .address : {"code" : override_code }}
2551
2552
)
0 commit comments