From 7f743ff3f138ab4e746d6e36020bdcaa611735cd Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 5 Jul 2021 10:02:52 -0400 Subject: [PATCH] fix RepostKey --- lbry/wallet/server/db/prefixes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbry/wallet/server/db/prefixes.py b/lbry/wallet/server/db/prefixes.py index 7115b9bd3..e0371377f 100644 --- a/lbry/wallet/server/db/prefixes.py +++ b/lbry/wallet/server/db/prefixes.py @@ -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: