Skip to content

Commit

Permalink
fix(kmd): 🐛 fix error if txn indices supplied are more than txns
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonboukheir committed Oct 24, 2023
1 parent 1d6c7ad commit 52328ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Runtime/Algorand.Unity/Clients/Kmd/KmdAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public async UniTask<SignedTxn<T>[]> SignTxnsAsync<T>(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();
Expand Down

0 comments on commit 52328ad

Please sign in to comment.