Skip to content

Commit 779fafa

Browse files
authored
fix(api): include correct blob index in response (#903)
* fix(api): return correct blob index * chore: add changeset
1 parent 4b9f58a commit 779fafa

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/selfish-baboons-rush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@blobscan/api": patch
3+
---
4+
5+
Resolved an issue where the blob response incorrectly included the transaction index instead of the actual blob index

packages/api/src/routers/blob/helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,13 @@ export function toResponseBlob(
277277
toId,
278278
computeBlobGasBaseFee,
279279
computeUsdFields,
280+
index: _,
280281
...restPrismaTx
281282
} = prismaTx;
282283

283284
responseBlobOnTx = {
284-
...responseBlobOnTx,
285285
...restPrismaTx,
286+
...responseBlobOnTx,
286287
...normalizePrismaTransactionFields({
287288
decodedFields,
288289
from,

0 commit comments

Comments
 (0)