dev@locazia: fix
This commit is contained in:
parent
badb2e0374
commit
27116f9a37
|
|
@ -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''
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue