diff --git a/algorand/admin.py b/algorand/admin.py index 0573d906d..d88bbfb45 100644 --- a/algorand/admin.py +++ b/algorand/admin.py @@ -1013,8 +1013,6 @@ class PortalCore: txns.append(transaction.ApplicationCallTxn( sender=sender.getAddress(), - # AUDIT: this is wrong, as the index should be only the last - # eight bytes of the destionation... we fixed it index=int.from_bytes(bytes.fromhex(p["ToAddress"])[24:], "big"), on_complete=transaction.OnComplete.NoOpOC, app_args=[m.get_selector(), m.args[0].type.encode(vaa)], diff --git a/algorand/test/test.py b/algorand/test/test.py index f9bf76bea..8c7869734 100644 --- a/algorand/test/test.py +++ b/algorand/test/test.py @@ -671,8 +671,8 @@ class AlgoTest(PortalCore): try: self.submitVAA(vaa, client, player, self.tokenid) except algosdk.error.AlgodHTTPError as e: - # should fail right at line 936 - if "opcodes=pushint 936" in str(e): + # should fail right at line 963 + if "opcodes=pushint 963" in str(e): return True, vaa, None return False, vaa, e