ethergo/forker/fork.go
Function Fork
has 8 return statements (exceeds 4 allowed). Open
Open
func Fork(ctx context.Context, rpcURL string, chainID uint64, clientFunc func(client *ethclient.Client)) error {
processPort, err := freeport.GetFreePort()
if err != nil {
return fmt.Errorf("failed to get free port: %w", err)
}
Function getForkClientHandler
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func getForkClientHandler(ctx context.Context, cmd *exec.Cmd, chainID uint64, processPort int, clientFunc func(client *ethclient.Client)) func() error {