From d9e2a398990b9ddfb8e83fe776d50bdb9997377d Mon Sep 17 00:00:00 2001 From: user Date: Fri, 5 Apr 2024 22:49:14 +0300 Subject: [PATCH] fix --- app/core/models/content/indexation_mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/models/content/indexation_mixins.py b/app/core/models/content/indexation_mixins.py index 0a9404d..649c2d2 100644 --- a/app/core/models/content/indexation_mixins.py +++ b/app/core/models/content/indexation_mixins.py @@ -55,7 +55,7 @@ class UserContentIndexationMixin: assert cc_indexator_data['type'] == 1, "Type is not a content" assert cc_indexator_data['address'] == self.onchain_address, "Address is not equal" values_slice = cc_indexator_data['values'].begin_parse() - content_hash_b58 = base58.b58encode(bytes.fromhex(values_slice.read_uint(256).hex()[2:])).decode() + content_hash_b58 = base58.b58encode(bytes.fromhex(hex(values_slice.read_uint(256))[2:])).decode() stored_content = db_session.query(StoredContent).filter( and_( StoredContent.type == 'onchain/content',