Skip to content

Commit 9a3ebe1

Browse files
[SDK] Add transaction hash to max wait time error (#7789)
1 parent ad2d225 commit 9a3ebe1

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/odd-fans-tickle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Add transaction hash to max wait time error

packages/thirdweb/src/transaction/actions/wait-for-tx-receipt.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ describe("waitForReceipt", () => {
101101
}
102102

103103
await expect(result).rejects.toThrow(
104-
`Transaction not found after ${10} blocks`,
104+
`Transaction receipt for ${MOCK_TX_HASH} not found after 10 blocks`,
105105
);
106106
expect(mockEthGetTransactionReceipt).toHaveBeenCalledTimes(10);
107107
});

packages/thirdweb/src/transaction/actions/wait-for-tx-receipt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function waitForReceipt(
7272
unwatch();
7373
reject(
7474
new Error(
75-
`Transaction not found after ${maxBlocksWaitTime} blocks`,
75+
`Transaction receipt for ${transactionHash} not found after ${maxBlocksWaitTime} blocks`,
7676
),
7777
);
7878
return;

0 commit comments

Comments
 (0)