Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey committed Jul 24, 2024
1 parent d4333f2 commit b41cf9a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crawlers/mooncrawl/mooncrawl/moonworm_crawler/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ def add_events_to_session(
"block_timestamp": label_event.block_timestamp,
"caller_address": None,
"origin_address": None,
"address": HexBytes(label_event.address),
"address": HexBytes(
label_event.address
), # transform to \x00 format on insert
"label_name": label_event.label_name,
"label_type": "event",
"label_data": label_event.label_data,
Expand Down Expand Up @@ -358,7 +360,9 @@ def add_function_calls_to_session(
"block_timestamp": label_function_call.block_timestamp,
"caller_address": HexBytes(label_function_call.caller_address),
"origin_address": HexBytes(label_function_call.caller_address),
"address": HexBytes(label_function_call.address),
"address": HexBytes(
label_function_call.address
), # transform to \x00 format on insert
"label_name": label_function_call.label_name,
"label_type": "tx_call",
"label_data": label_function_call.label_data,
Expand Down

0 comments on commit b41cf9a

Please sign in to comment.