diff --git a/Runtime/Algorand.Unity/Clients/Kmd/KmdAccount.cs b/Runtime/Algorand.Unity/Clients/Kmd/KmdAccount.cs index a16e6d82d..075e3094a 100644 --- a/Runtime/Algorand.Unity/Clients/Kmd/KmdAccount.cs +++ b/Runtime/Algorand.Unity/Clients/Kmd/KmdAccount.cs @@ -52,6 +52,7 @@ public async UniTask[]> SignTxnsAsync(T[] txns, TxnIndices txnsT while (indexEnum.MoveNext()) { var i = indexEnum.Current; + if (i >= txns.Length) break; var serializedTxn = AlgoApiSerializer.SerializeMessagePack(txns[i]); (signErr, signResp) = await client.SignTransaction(Address, serializedTxn, walletHandleToken, walletPassword); signErr.ThrowIfError();