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 prover endpoint scheme check (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored Sep 21, 2023
1 parent 2f2007d commit ce8bd1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proposer/prover_selector/eth_fee_eoa_selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (

var (
httpScheme = "http"
httpsScheme = "https"
errEmptyProverEndpoints = errors.New("empty prover endpoints")
errUnableToFindProver = errors.New("unable to find prover")
)
Expand Down Expand Up @@ -57,7 +58,7 @@ func NewETHFeeEOASelector(
}

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

0 comments on commit ce8bd1d

Please sign in to comment.