Skip to content

Commit 695e883

Browse files
committed
Use event.topic in logs integration tests
1 parent e73687b commit 695e883

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web3/_utils/module_testing/persistent_connection_provider.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,14 +542,13 @@ async def test_async_eth_subscribe_creates_and_handles_logs_subscription_type(
542542
sub_manager = async_w3.subscription_manager
543543

544544
event = async_emitter_contract.events.LogIndexedAndNotIndexed
545-
event_topic = async_w3.keccak(text=event.abi_element_identifier).to_0x_hex()
546545

547546
logs_handler_test = SubscriptionHandlerTest()
548547
sub_id = await async_w3.eth.subscribe(
549548
"logs",
550549
{
551550
"address": async_emitter_contract.address,
552-
"topics": [HexStr(event_topic)],
551+
"topics": [event.topic],
553552
},
554553
handler=logs_handler,
555554
handler_context={

0 commit comments

Comments
 (0)