61
61
)
62
62
63
63
64
- def construct_event_topic_set (event_abi , arguments = None ):
64
+ def construct_event_topic_set (event_abi , web3 , arguments = None ):
65
65
if arguments is None :
66
66
arguments = {}
67
67
if isinstance (arguments , (list , tuple )):
@@ -89,7 +89,7 @@ def construct_event_topic_set(event_abi, arguments=None):
89
89
]
90
90
encoded_args = [
91
91
[
92
- None if option is None else encode_hex (encode_single (arg ['type' ], option ))
92
+ None if option is None else encode_hex (web3 . codec . encode_single (arg ['type' ], option ))
93
93
for option in arg_options ]
94
94
for arg , arg_options in zipped_abi_and_args
95
95
]
@@ -98,7 +98,7 @@ def construct_event_topic_set(event_abi, arguments=None):
98
98
return topics
99
99
100
100
101
- def construct_event_data_set (event_abi , arguments = None ):
101
+ def construct_event_data_set (event_abi , web3 , arguments = None ):
102
102
if arguments is None :
103
103
arguments = {}
104
104
if isinstance (arguments , (list , tuple )):
@@ -125,7 +125,7 @@ def construct_event_data_set(event_abi, arguments=None):
125
125
]
126
126
encoded_args = [
127
127
[
128
- None if option is None else encode_hex (encode_single (arg ['type' ], option ))
128
+ None if option is None else encode_hex (web3 . codec . encode_single (arg ['type' ], option ))
129
129
for option in arg_options ]
130
130
for arg , arg_options in zipped_abi_and_args
131
131
]
0 commit comments