Skip to content

Commit

Permalink
include components in decoded output for tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Aug 7, 2019
1 parent aff58c6 commit b31e76e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eth_event/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ def _decode(inputs, topics, data):
result = []
for i in inputs:
result.append({'name': i['name'], 'type': i['type']})
if 'components' in i:
result[-1]['components'] = i['components']
if i['indexed']:
try:
value = HexBytes(topics.pop())
Expand Down

0 comments on commit b31e76e

Please sign in to comment.