diff --git a/app/api/routes/_blockchain.py b/app/api/routes/_blockchain.py index 6c9e13b..e0d5b51 100644 --- a/app/api/routes/_blockchain.py +++ b/app/api/routes/_blockchain.py @@ -102,7 +102,7 @@ async def s_api_v1_blockchain_send_new_content_message(request): 'payload': b64encode( begin_cell() .store_uint(0x5491d08c, 32) - .store_uint(int(encrypted_content_cid.content_hash.hex()[2:], 16), 256) + .store_uint(int.from_bytes(encrypted_content_cid.content_hash, "big", signed=False), 256) .store_ref( begin_cell() .store_ref( diff --git a/app/core/models/node_storage.py b/app/core/models/node_storage.py index 64708ca..c904239 100644 --- a/app/core/models/node_storage.py +++ b/app/core/models/node_storage.py @@ -28,6 +28,7 @@ class StoredContent(AlchemyBase): ipfs_cid = Column(String(1024), nullable=True) telegram_cid = Column(String(1024), nullable=True) + codebase_version = Column(Integer, nullable=True) created = Column(DateTime, nullable=False, default=0) updated = Column(DateTime, nullable=False, default=0) disabled = Column(DateTime, nullable=False, default=0)