Skip to content

Commit 95483b8

Browse files
authored
chore: increase sleep time on WaitForReceipt (#297)
1 parent 49ba124 commit 95483b8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/utils/eth_client_utils.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ import (
1313
)
1414

1515
const maxRetries = 25
16+
const sleepTime = 5 * time.Second
1617

1718
func WaitForTransactionReceipt(client eth.Client, ctx context.Context, txHash gethcommon.Hash) (*types.Receipt, error) {
1819
for i := 0; i < maxRetries; i++ {
1920
receipt, err := client.TransactionReceipt(ctx, txHash)
2021
if err != nil {
21-
time.Sleep(2 * time.Second)
22+
time.Sleep(sleepTime)
2223
} else {
2324
return receipt, nil
2425
}

0 commit comments

Comments
 (0)