Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemadero committed Feb 7, 2025
1 parent 238fbb9 commit f52ee8d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions pkg/evm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -804,21 +804,3 @@ func TransactionError(tx *types.Transaction, err error, msg string, args ...inte
args = append(args, err)
return fmt.Errorf(msg+msgSuffix, args...)
}

func WaitForRPC(ctx context.Context, rpcURL string) error {
client, err := GetClient(rpcURL)
if err != nil {
return err
}
for {
_, err := client.ChainID(ctx)
if err == nil {
return nil
}
select {
case <-ctx.Done():
return ctx.Err()
case <-time.After(1 * time.Second):
}
}
}

0 comments on commit f52ee8d

Please # to comment.