Skip to content

Commit 638c1cb

Browse files
Fix default timeout in GetTransactionReceiptAsync documentation
- Correct default timeout from 60 seconds to 3 minutes - Update both comment and example code to reflect accurate default - Addresses additional feedback from user review Co-Authored-By: gleb@reown.com <gleb@skibitsky.com>
1 parent f2f22f7 commit 638c1cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

appkit/unity/core/actions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ Debug.Log($"Block Hash: {receipt.BlockHash}");
348348
Debug.Log($"Status: {(receipt.StatusSuccessful ? "Success" : "Failed")}");
349349
Debug.Log($"Gas Used: {receipt.GasUsed}");
350350

351-
// With custom timeout (default is 60 seconds)
351+
// With custom timeout (default is 3 minutes)
352352
TransactionReceipt receipt = await AppKit.EVM.GetTransactionReceiptAsync(
353353
"0x123...", // transaction hash
354354
TimeSpan.FromSeconds(120) // custom timeout
@@ -365,7 +365,7 @@ TransactionReceipt receipt = await AppKit.EVM.GetTransactionReceiptAsync(
365365
using var cts = new CancellationTokenSource();
366366
TransactionReceipt receipt = await AppKit.EVM.GetTransactionReceiptAsync(
367367
"0x123...", // transaction hash
368-
TimeSpan.FromSeconds(60), // timeout
368+
TimeSpan.FromMinutes(3), // timeout
369369
TimeSpan.FromSeconds(12), // polling interval
370370
cts.Token // cancellation token
371371
);

0 commit comments

Comments
 (0)