Skip to content

Commit

Permalink
Fix getting tx signers when no signatures are provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed Feb 7, 2022
1 parent 5eaaa5d commit d262b9b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions gnosis/safe/safe_tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,15 @@ def safe_tx_hash(self) -> HexBytes:

@property
def signers(self) -> List[str]:
return [
safe_signature.owner
for safe_signature in SafeSignature.parse_signature(
self.signatures, self.safe_tx_hash
)
]
if not self.signatures:
return []
else:
return [
safe_signature.owner
for safe_signature in SafeSignature.parse_signature(
self.signatures, self.safe_tx_hash
)
]

@property
def sorted_signers(self):
Expand Down

0 comments on commit d262b9b

Please sign in to comment.