Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/odd-fans-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Add transaction hash to max wait time error
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe("waitForReceipt", () => {
}

await expect(result).rejects.toThrow(
`Transaction not found after ${10} blocks`,
`Transaction receipt for ${MOCK_TX_HASH} not found after 10 blocks`,
);
expect(mockEthGetTransactionReceipt).toHaveBeenCalledTimes(10);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function waitForReceipt(
unwatch();
reject(
new Error(
`Transaction not found after ${maxBlocksWaitTime} blocks`,
`Transaction receipt for ${transactionHash} not found after ${maxBlocksWaitTime} blocks`,
),
);
return;
Expand Down
Loading