Skip to content

Commit

Permalink
Fix inner-txns logs encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanofa committed Jul 3, 2023
1 parent c426b96 commit 0bdece4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Recovery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0bdece4

Please sign in to comment.