fix RepostKey

This commit is contained in:
Jack Robison 2021-07-05 10:02:52 -04:00 committed by Victor Shyba
parent a1b7c61b56
commit 7f743ff3f1

View file

@ -779,9 +779,9 @@ class RepostPrefixRow(PrefixRow):
@classmethod @classmethod
def unpack_key(cls, key: bytes) -> RepostKey: def unpack_key(cls, key: bytes) -> RepostKey:
assert key[0] == cls.prefix assert key[:1] == cls.prefix
assert len(key) == 21 assert len(key) == 21
return RepostKey[1:] return RepostKey(key[1:])
@classmethod @classmethod
def pack_value(cls, reposted_claim_hash: bytes) -> bytes: def pack_value(cls, reposted_claim_hash: bytes) -> bytes: