fix RepostKey
This commit is contained in:
parent
a1b7c61b56
commit
7f743ff3f1
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue