Skip to content

Commit

Permalink
chore(lib/ethclient): remove holesky wait delay (#2553)
Browse files Browse the repository at this point in the history
The 12 second wait applied to Holesky contract deployments did not solve
the issues we're seeing in Staging deployments.

issue: none
  • Loading branch information
Zodomo authored Nov 22, 2024
1 parent 733f15b commit 63255d8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/ethclient/ethbackend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 63255d8

Please sign in to comment.