From 63255d8ad2621f408092e8b36a38b5d78802e18d Mon Sep 17 00:00:00 2001 From: Zodomo Date: Fri, 22 Nov 2024 13:27:02 -0600 Subject: [PATCH] chore(lib/ethclient): remove holesky wait delay (#2553) The 12 second wait applied to Holesky contract deployments did not solve the issues we're seeing in Staging deployments. issue: none --- lib/ethclient/ethbackend/backend.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/ethclient/ethbackend/backend.go b/lib/ethclient/ethbackend/backend.go index 0daa8c58d..743e0d521 100644 --- a/lib/ethclient/ethbackend/backend.go +++ b/lib/ethclient/ethbackend/backend.go @@ -12,7 +12,6 @@ import ( "github.com/omni-network/omni/lib/anvil" "github.com/omni-network/omni/lib/errors" "github.com/omni-network/omni/lib/ethclient" - "github.com/omni-network/omni/lib/evmchain" "github.com/omni-network/omni/lib/fireblocks" "github.com/omni-network/omni/lib/k1util" "github.com/omni-network/omni/lib/log" @@ -178,12 +177,6 @@ func (b *Backend) WaitMined(ctx context.Context, tx *ethtypes.Transaction) (*eth return rec, errors.New("receipt status unsuccessful", "status", rec.Status, "tx", tx.Hash()) } - // If b.chainID == holesky, wait a little longer for the tx to be indexed. - if b.chainID == evmchain.IDHolesky { - log.Debug(ctx, "Waiting extra 12 seconds (~1 block) for tx to be indexed on Holesky") - time.Sleep(time.Second * 12) - } - return rec, nil }