-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #976 from dylanjw/merging_topic_lists
Disallow configuring filters with both manual and generated topic lists
- Loading branch information
Showing
7 changed files
with
111 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
tests/core/filtering/test_contract_createFilter_topic_merging.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import pytest | ||
|
||
|
||
def test_merged_topic_list_event( | ||
web3, | ||
emitter, | ||
emitter_event_ids, | ||
wait_for_transaction): | ||
manual_topics = [ | ||
'0xf16c999b533366ca5138d78e85da51611089cd05749f098d6c225d4cd42ee6ec', # event sig | ||
'0x0000000000000000000000000000000000000000000000000000000000000457', # 1111 | ||
'0x0000000000000000000000000000000000000000000000000000000000000457', # 1111 | ||
'0x0000000000000000000000000000000000000000000000000000000000000457', # 1111 | ||
] | ||
with pytest.raises(TypeError): | ||
emitter.events.LogTripleWithIndex().createFilter( | ||
fromBlock="latest", | ||
topics=manual_topics, | ||
argument_filters={'arg0': 2222, 'arg1': 2222, 'arg2': 2222}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters