From 2d8ca7f90edcbb680211a95b63dd0402eb654847 Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 15 Jul 2024 17:28:35 +0300 Subject: [PATCH] Add insert change. --- crawlers/mooncrawl/mooncrawl/moonworm_crawler/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crawlers/mooncrawl/mooncrawl/moonworm_crawler/db.py b/crawlers/mooncrawl/mooncrawl/moonworm_crawler/db.py index 43a81955..85807dbe 100644 --- a/crawlers/mooncrawl/mooncrawl/moonworm_crawler/db.py +++ b/crawlers/mooncrawl/mooncrawl/moonworm_crawler/db.py @@ -265,7 +265,7 @@ def add_events_to_session( "block_timestamp": label_event.block_timestamp, "caller_address": None, "origin_address": None, - "address": label_event.address, + "address": bytes.fromhex(label_event.address[2:]), "label_name": label_event.label_name, "label_type": "event", "label_data": label_event.label_data, @@ -357,7 +357,7 @@ def add_function_calls_to_session( "block_timestamp": label_function_call.block_timestamp, "caller_address": label_function_call.caller_address, "origin_address": label_function_call.caller_address, - "address": label_function_call.address, + "address": bytes.fromhex(label_function_call.address[2:]), "label_name": label_function_call.label_name, "label_type": "tx_call", "label_data": label_function_call.label_data,