dev@locazia: fix

This commit is contained in:
user 2024-03-08 03:23:55 +03:00
parent badb2e0374
commit 27116f9a37
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class ContentId:
return b58encode(self.content_hash).decode() return b58encode(self.content_hash).decode()
def serialize_v1(self) -> str: def serialize_v1(self) -> str:
at_bin = string_to_bytes_fixed_size(self.accept_type, 15) at_bin = self.accept_type[:15] # string_to_bytes_fixed_size(self.accept_type, 15)
assert len(self.content_hash) == 32, "Invalid hash length" assert len(self.content_hash) == 32, "Invalid hash length"
if self.onchain_index < 0: if self.onchain_index < 0:
oi_bin = b'' oi_bin = b''