From 0bdece44bda3be157ce7e19e7a07136a101f83b5 Mon Sep 17 00:00:00 2001 From: Stefano Faieta <9802152+stefanofa@users.noreply.github.com> Date: Tue, 4 Jul 2023 00:01:32 +0200 Subject: [PATCH] Fix inner-txns logs encoding --- src/components/Recovery.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Recovery.tsx b/src/components/Recovery.tsx index 269bfa839..5d3f37955 100644 --- a/src/components/Recovery.tsx +++ b/src/components/Recovery.tsx @@ -223,9 +223,7 @@ async function algo(tx: string, enqueueSnackbar: any) { // transform the object to match the format expected by parseSequenceFromLogAlgorand confirmedTxInfo["inner-txns"] = confirmedTxInfo["inner-txns"].map( (txn: any) => ({ - // TODO: seems to be little different from the format returned by algodClient.pendingTransactionInformation(tx) - // so there may be another encoding step to do here - logs: [Buffer.from(txn["logs"], "base64")], + logs: [Buffer.from(txn["logs"][0], "base64")], }) ); const sequence = parseSequenceFromLogAlgorand(confirmedTxInfo);