Skip to content

Commit

Permalink
algorand: fixes magic assert for token bridge repeated VAA sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
scnale committed Nov 29, 2023
1 parent e5ca13e commit e629bff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions algorand/test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ def double_submit_transfer_vaa_fails(seq):
self.submitVAA(vaa, client, player, self.tokenid)
except algosdk.error.AlgodHTTPError as e:
# should fail right at line 963
if "opcodes=pushint 963" in str(e):
if "opcodes=pushint 935" in str(e):
return True, vaa, None
return False, vaa, e

Expand All @@ -671,7 +671,7 @@ def double_submit_transfer_vaa_fails(seq):
for _ in range(self.args.loops):
result, vaa, err = double_submit_transfer_vaa_fails(seq)
if err != None:
assert False, f"!!! ERR: unepexted error. error:\n {err}\noffending vaa hex:\n{vaa.hex()}"
assert False, f"!!! ERR: unexpected error. error:\n {err}\noffending vaa hex:\n{vaa.hex()}"

assert result, f"!!! ERR: sending same VAA twice worked. offending vaa hex:\n{vaa.hex()}"
seq+=1
Expand Down

0 comments on commit e629bff

Please sign in to comment.