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',