Skip to content

Commit

Permalink
fix in bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Officeyutong committed Dec 3, 2024
1 parent 93967ba commit 2b09a41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions light-client-js/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@ interface GetTransactionsResponse<T> {
}

export function lightClientGetTransactionsResultTo(input: LightClientPagination<LightClientTxWithCell> | LightClientPagination<LightClientTxWithCells>): GetTransactionsResponse<TxWithCell> | GetTransactionsResponse<TxWithCells> {
if (input.objects.length === 0) {
return ({
lastCursor: input.last_cursor,
transactions: []
})
}
if ("io_index" in input.objects[0]) {
return ({
lastCursor: input.last_cursor,
Expand Down

0 comments on commit 2b09a41

Please sign in to comment.