@@ -802,14 +802,14 @@ async def test_eth_call_offchain_lookup_raises_when_ccip_read_is_disabled(
802802 ).call (ccip_read_enabled = False )
803803
804804 # test global flag on the provider
805- async_w3 .provider .ccip_read_calls_enabled = False
805+ async_w3 .provider .global_ccip_read_enabled = False
806806
807807 with pytest .raises (OffchainLookup ):
808808 await async_offchain_lookup_contract .functions .testOffchainLookup ( # noqa: E501 type: ignore
809809 OFFCHAIN_LOOKUP_TEST_DATA
810810 ).call ()
811811
812- async_w3 .provider .ccip_read_calls_enabled = True # cleanup
812+ async_w3 .provider .global_ccip_read_enabled = True # cleanup
813813
814814 @pytest .mark .asyncio
815815 async def test_eth_call_offchain_lookup_call_flag_overrides_provider_flag (
@@ -829,15 +829,15 @@ async def test_eth_call_offchain_lookup_call_flag_overrides_provider_flag(
829829 mocked_json_data = WEB3PY_AS_HEXBYTES ,
830830 )
831831
832- async_w3 .provider .ccip_read_calls_enabled = False
832+ async_w3 .provider .global_ccip_read_enabled = False
833833
834834 response = await async_offchain_lookup_contract .functions .testOffchainLookup (
835835 # noqa: E501 type: ignore
836836 OFFCHAIN_LOOKUP_TEST_DATA
837837 ).call (ccip_read_enabled = True )
838838 assert async_w3 .codec .decode_abi (['string' ], response )[0 ] == 'web3py'
839839
840- async_w3 .provider .ccip_read_calls_enabled = True # cleanup
840+ async_w3 .provider .global_ccip_read_enabled = True # cleanup
841841
842842 @pytest .mark .asyncio
843843 @pytest .mark .parametrize ("max_redirects" , range (- 1 , 4 ))
@@ -2552,12 +2552,12 @@ def test_eth_call_offchain_lookup_raises_when_ccip_read_is_disabled(
25522552 )
25532553
25542554 # test global flag on the provider
2555- w3 .provider .ccip_read_calls_enabled = False
2555+ w3 .provider .global_ccip_read_enabled = False
25562556
25572557 with pytest .raises (OffchainLookup ):
25582558 offchain_lookup_contract .functions .testOffchainLookup (OFFCHAIN_LOOKUP_TEST_DATA ).call ()
25592559
2560- w3 .provider .ccip_read_calls_enabled = True # cleanup
2560+ w3 .provider .global_ccip_read_enabled = True # cleanup
25612561
25622562 def test_eth_call_offchain_lookup_call_flag_overrides_provider_flag (
25632563 self ,
@@ -2573,14 +2573,14 @@ def test_eth_call_offchain_lookup_call_flag_overrides_provider_flag(
25732573 mocked_json_data = WEB3PY_AS_HEXBYTES ,
25742574 )
25752575
2576- w3 .provider .ccip_read_calls_enabled = False
2576+ w3 .provider .global_ccip_read_enabled = False
25772577
25782578 response = offchain_lookup_contract .functions .testOffchainLookup (
25792579 OFFCHAIN_LOOKUP_TEST_DATA
25802580 ).call (ccip_read_enabled = True )
25812581 assert w3 .codec .decode_abi (['string' ], response )[0 ] == 'web3py'
25822582
2583- w3 .provider .ccip_read_calls_enabled = True # cleanup
2583+ w3 .provider .global_ccip_read_enabled = True # cleanup
25842584
25852585 @pytest .mark .parametrize ("max_redirects" , range (- 1 , 4 ))
25862586 def test_eth_call_offchain_lookup_raises_if_max_redirects_is_less_than_4 (
0 commit comments