Skip to content

Commit 59aefe0

Browse files
committed
method name change: simulateV1 -> simulate_v1
1 parent db9a10d commit 59aefe0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

tests/integration/test_ethereum_tester.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ class TestEthereumTesterEthModule(EthModuleTest):
338338
EthModuleTest.test_eth_getBlockReceipts_finalized,
339339
MethodUnavailable,
340340
)
341-
test_eth_simulateV1 = not_implemented(
342-
EthModuleTest.test_eth_simulateV1,
341+
test_eth_simulate_v1 = not_implemented(
342+
EthModuleTest.test_eth_simulate_v1,
343343
MethodUnavailable,
344344
)
345345

web3/_utils/module_testing/eth_module.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,8 +1691,8 @@ async def test_eth_call_continuous_offchain_lookup_raises_with_too_many_requests
16911691
await async_offchain_lookup_contract.caller().continuousOffchainLookup() # noqa: E501 type: ignore
16921692

16931693
@pytest.mark.asyncio
1694-
async def test_eth_simulateV1(self, async_w3: "AsyncWeb3") -> None:
1695-
simulate_result = await async_w3.eth.simulateV1(
1694+
async def test_eth_simulate_v1(self, async_w3: "AsyncWeb3") -> None:
1695+
simulate_result = await async_w3.eth.simulate_v1(
16961696
{
16971697
"blockStateCalls": [
16981698
{
@@ -3960,8 +3960,8 @@ def test_eth_call_custom_error_revert_without_msg(
39603960
w3.eth.call(txn_params)
39613961
assert excinfo.value.data == data
39623962

3963-
def test_eth_simulateV1(self, w3: "Web3") -> None:
3964-
simulate_result = w3.eth.simulateV1(
3963+
def test_eth_simulate_v1(self, w3: "Web3") -> None:
3964+
simulate_result = w3.eth.simulate_v1(
39653965
{
39663966
"blockStateCalls": [
39673967
{

web3/eth/async_eth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ async def _durin_call(
300300
]
301301
] = Method(RPC.eth_simulateV1)
302302

303-
async def simulateV1(
303+
async def simulate_v1(
304304
self,
305305
payload: SimulateV1Payload,
306306
block_identifier: BlockIdentifier,

web3/eth/eth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def _durin_call(
278278
Callable[[SimulateV1Payload, BlockIdentifier], Sequence[SimulateV1Result]]
279279
] = Method(RPC.eth_simulateV1)
280280

281-
def simulateV1(
281+
def simulate_v1(
282282
self,
283283
payload: SimulateV1Payload,
284284
block_identifier: BlockIdentifier,

0 commit comments

Comments
 (0)