Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
feat(proposer): update scheme check (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
davaymne authored Sep 21, 2023
1 parent 3954d26 commit 04a9c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proposer/prover_selector/eth_fee_eoa_selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
)

var (
httpScheme = "http"
httpScheme = map[string]bool{"http": true, "https": true}
errEmptyProverEndpoints = errors.New("empty prover endpoints")
errUnableToFindProver = errors.New("unable to find prover")
)
Expand Down Expand Up @@ -57,7 +57,7 @@ func NewETHFeeEOASelector(
}

for _, endpoint := range proverEndpoints {
if endpoint.Scheme != httpScheme {
if !httpScheme[endpoint.Scheme] {
return nil, fmt.Errorf("invalid prover endpoint %s", endpoint)
}
}
Expand Down

0 comments on commit 04a9c73

Please sign in to comment.