Skip to content

Commit

Permalink
Apply PR suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
falvaradorodriguez committed Jul 3, 2024
1 parent 465f46e commit b8f86ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_safe_tx_service_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_add_delegate(self, add_delegate_mock: MagicMock):
expected_hash = safe_operator.safe_tx_service.create_delegate_message_hash(
delegate_address
)
expected_signature_signed = signer.signHash(expected_hash)
expected_signature = signer.signHash(expected_hash)

self.assertTrue(
safe_operator.add_delegate(delegate_address, label, signer.address)
Expand All @@ -93,7 +93,7 @@ def test_add_delegate(self, add_delegate_mock: MagicMock):
delegate_address,
signer.address,
label,
expected_signature_signed,
expected_signature,
safe_address=safe_operator.address,
)

Expand All @@ -108,14 +108,14 @@ def test_remove_delegate(self, remove_delegate_mock: MagicMock):
expected_hash = safe_operator.safe_tx_service.create_delegate_message_hash(
delegate_address
)
expected_signature_signed = signer.signHash(expected_hash)
expected_signature = signer.signHash(expected_hash)

self.assertTrue(safe_operator.remove_delegate(delegate_address, signer.address))

remove_delegate_mock.assert_called_with(
delegate_address,
signer.address,
expected_signature_signed,
expected_signature,
safe_address=safe_operator.address,
)

Expand Down

0 comments on commit b8f86ad

Please sign in to comment.