[spam][crazy][wrong] Trying To Do Stuff
Undiscussed Horrific Abuse, One Victim of Many
gmkarl at gmail.com
Tue Feb 8 01:45:38 PST 2022
I found in my code where it enumerates calls to sync() on a contract
by using the signature.
Could do the same with setRef() here to enumerate a code history. it
looks like the abi json format isn't quite what the python web3
library expects.
>> pyweb3.utils.filters.construct_event_topic_set(setrefabi, pyweb3.w3.codec)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/.local/lib/python3.9/site-packages/web3/_utils/events.py",
line 119, in construct_event_topic_set
indexed_args = get_indexed_event_inputs(event_abi)
File "/home/ubuntu/.local/lib/python3.9/site-packages/web3/_utils/abi.py",
line 150, in get_indexed_event_inputs
return [arg for arg in event_abi['inputs'] if arg['indexed'] is True]
File "/home/ubuntu/.local/lib/python3.9/site-packages/web3/_utils/abi.py",
line 150, in <listcomp>
return [arg for arg in event_abi['inputs'] if arg['indexed'] is True]
KeyError: 'indexed'
More information about the cypherpunks
mailing list