File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1027,14 +1027,17 @@ def createFilter(
10271027 fromBlock = None ,
10281028 toBlock = "latest" ,
10291029 address = None ,
1030- topics = dict ()):
1030+ topics = list ()):
10311031 """
10321032 Create filter object that tracks logs emitted by this contract event.
10331033 :param filter_params: other parameters to limit the events
10341034 """
10351035 if not fromBlock :
10361036 raise ValueError ("Missing mandatory keyword argument to createFilter: fromBlock" )
10371037
1038+ if not address :
1039+ address = self .address
1040+
10381041 _filters = dict (** argument_filters )
10391042
10401043 data_filter_set , event_filter_params = construct_event_filter_params (
Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ def is_named_block(value):
3636 return value in {"latest" , "earliest" , "pending" }
3737
3838
39- def is_str_is_hex (value ):
39+ def is_hexstr (value ):
4040 return is_string (value ) and is_hex (value )
4141
4242
43- to_integer_if_hex = apply_formatter_if (is_str_is_hex , hex_to_integer )
43+ to_integer_if_hex = apply_formatter_if (is_hexstr , hex_to_integer )
4444
4545
4646is_not_named_block = complement (is_named_block )
You can’t perform that action at this time.
0 commit comments