fix exception
This commit is contained in:
@@ -313,8 +313,8 @@ class TransactKey:
|
||||
pairs: tuple[KeyPair, ...] = ()
|
||||
|
||||
def __add__(self, other: SortKey | KeyPair) -> 'TransactKey':
|
||||
if not isinstance(other, SortKey):
|
||||
raise TypeError('Can only add a SortKey to a TransactKey')
|
||||
if not isinstance(other, (SortKey, KeyPair)):
|
||||
raise TypeError('Can only add a SortKey and KeyPair to a TransactKey')
|
||||
|
||||
if isinstance(other, SortKey):
|
||||
other = KeyPair(self.pk, other)
|
||||
|
||||
Reference in New Issue
Block a user