Skip to content

Commit

Permalink
Fix var name
Browse files Browse the repository at this point in the history
  • Loading branch information
falvaradorodriguez committed Jun 6, 2024
1 parent 5c8cf1e commit 314d30b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions gnosis/safe/safe_tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,13 @@ def sign(self, private_key: str) -> bytes:
return signature

def unsign(self, address: str) -> bool:
tx_signatures = SafeSignature.parse_signature(
current_tx_signatures = SafeSignature.parse_signature(
self.signatures, self.safe_tx_hash
)
new_tx_signatures = list(filter(lambda x: x.owner != address, tx_signatures))
if tx_signatures != new_tx_signatures:
self.signatures = SafeSignature.export_signatures(new_tx_signatures)
filtered_tx_signatures = list(
filter(lambda x: x.owner != address, current_tx_signatures)
)
if current_tx_signatures != filtered_tx_signatures:
self.signatures = SafeSignature.export_signatures(filtered_tx_signatures)
return True
return False

0 comments on commit 314d30b

Please sign in to comment.