fix RepostKey

This commit is contained in:
Jack Robison 2021-07-05 10:02:52 -04:00
parent 290be69d99
commit a8f20361aa
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

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