Skip to content

Commit c80c673

Browse files
committed
fix: reduce viem's waiting for tx receipt polling period
1 parent 7c7d28e commit c80c673

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/client/src/viem/signer.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,14 @@ function sendTransactionWith(
6464
return ResultAsync.fromPromise(sendTransaction(walletClient, request), (err) =>
6565
SigningError.from(err),
6666
)
67-
.map(async (hash) => waitForTransactionReceipt(walletClient, { hash }))
67+
.map(async (hash) =>
68+
waitForTransactionReceipt(walletClient, {
69+
hash,
70+
pollingInterval: 100,
71+
retryCount: 20,
72+
retryDelay: 50,
73+
}),
74+
)
6875
.map((receipt) => txHash(receipt.transactionHash));
6976
}
7077

0 commit comments

Comments
 (0)