diff --git a/tests/core/contracts/test_contract_build_transaction.py b/tests/core/contracts/test_contract_build_transaction.py index 87f8dcba02..f00768b202 100644 --- a/tests/core/contracts/test_contract_build_transaction.py +++ b/tests/core/contracts/test_contract_build_transaction.py @@ -63,7 +63,7 @@ def test_build_transaction_with_contract_no_arguments_no_parens( "value": 0, "maxFeePerGas": 2750000000, "maxPriorityFeePerGas": 10**9, - "chainId": 131277322940537, + "chainId": w3.eth.chain_id, } @@ -329,7 +329,7 @@ async def test_async_build_transaction_with_contract_no_arguments_no_parens( "value": 0, "maxFeePerGas": 2750000000, "maxPriorityFeePerGas": 10**9, - "chainId": 131277322940537, + "chainId": await async_w3.eth.chain_id, } diff --git a/tests/core/contracts/test_contract_estimate_gas.py b/tests/core/contracts/test_contract_estimate_gas.py index 3e2fd48fe1..bf6209d7c4 100644 --- a/tests/core/contracts/test_contract_estimate_gas.py +++ b/tests/core/contracts/test_contract_estimate_gas.py @@ -213,7 +213,7 @@ async def test_async_estimate_gas_accepts_latest_block( async def test_async_estimate_gas_can_be_called_without_parens( async_w3, async_math_contract, async_transact ): - gas_estimate = await async_math_contract.functions.counter.estimate_gas( + gas_estimate = await async_math_contract.functions.incrementCounter.estimate_gas( block_identifier="latest" )