Skip to content

Commit

Permalink
Tests: fixed use of the with_hash argument
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmer25 committed Feb 6, 2024
1 parent 0d02104 commit e53f65e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/python/test_instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def test_sign_preattestation(
chain_id=main_chain_id
)

if with_hash:
if not with_hash:
signature = client.sign_message(account, preattestation)
account.check_signature(signature, bytes(preattestation))
else:
Expand Down Expand Up @@ -363,7 +363,7 @@ def test_sign_attestation(
chain_id=main_chain_id
)

if with_hash:
if not with_hash:
signature = client.sign_message(account, attestation)
account.check_signature(signature, bytes(attestation))
else:
Expand Down Expand Up @@ -413,7 +413,7 @@ def test_sign_attestation_dal(
chain_id=main_chain_id
)

if with_hash:
if not with_hash:
signature = client.sign_message(account, attestation)
account.check_signature(signature, bytes(attestation))
else:
Expand Down Expand Up @@ -463,7 +463,7 @@ def test_sign_block(
chain_id=main_chain_id
)

if with_hash:
if not with_hash:
signature = client.sign_message(account, block)
account.check_signature(signature, bytes(block))
else:
Expand Down Expand Up @@ -610,7 +610,7 @@ def test_sign_delegation(

raw_delegation = delegation.forge()

if with_hash:
if not with_hash:
signature = tezos_navigator.sign_delegation(
account,
delegation,
Expand Down

0 comments on commit e53f65e

Please sign in to comment.