Skip to content

Commit

Permalink
bugfix: fix formatting extTx in GetBlock response
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoacosta74 committed Jul 10, 2024
1 parent 038c385 commit 4b573b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/providers/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,12 @@ const _formatWoHeader = object({
});

const _formatBlock = object({
extTransactions: arrayOf(formatHash),
extTransactions: arrayOf((tx: any) => {
if (typeof tx === 'string') {
return formatHash(tx);
}
return formatTransactionResponse(tx);
}),
interlinkHashes: arrayOf(formatHash),
order: getNumber,
size: getBigInt,
Expand Down

0 comments on commit 4b573b9

Please sign in to comment.