From e4a6435ca229f392f6056a949d15fa9cbdfc64b2 Mon Sep 17 00:00:00 2001 From: uhudo <115161770+uhudo@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:11:33 +0100 Subject: [PATCH] fix: remove index on application create call in beta composer #122 --- src/algokit_utils/beta/composer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algokit_utils/beta/composer.py b/src/algokit_utils/beta/composer.py index a8aaa4b..22172a7 100644 --- a/src/algokit_utils/beta/composer.py +++ b/src/algokit_utils/beta/composer.py @@ -456,7 +456,6 @@ def _build_app_call( sdk_params = { "sender": params.sender, "sp": suggested_params, - "index": params.app_id or 0, "on_complete": params.on_complete or algosdk.transaction.OnComplete.NoOpOC, "approval_program": params.approval_program, "clear_program": params.clear_program, @@ -484,6 +483,7 @@ def _build_app_call( txn = algosdk.transaction.ApplicationCreateTxn(**sdk_params) # type: ignore[no-untyped-call] else: + sdk_params["index"] = params.app_id txn = algosdk.transaction.ApplicationCallTxn(**sdk_params) # type: ignore[assignment,no-untyped-call] return self._common_txn_build_step(params, txn, suggested_params)