Skip to content

Commit

Permalink
fix targets
Browse files Browse the repository at this point in the history
  • Loading branch information
felipe-op committed Jun 2, 2023
1 parent e5a678c commit c2e2f22
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions proxyd/proxyd.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,13 @@ func Start(config *Config) (*Server, func(), error) {

func validateReceiptsTarget(val string) (string, error) {
if val == "" {
val = "debug_getRawReceipts"
val = ReceiptsTargetDebugGetRawReceipts
}
switch val {
case "debug_getRawReceipts",
"eth_getTransactionReceipt",
"alchemy_getTransactionReceipts":
case ReceiptsTargetDebugGetRawReceipts,
ReceiptsTargetAlchemyGetTransactionReceipts,
ReceiptsTargetEthGetTransactionReceipts,
ReceiptsTargetParityGetTransactionReceipts:
return val, nil
default:
return "", fmt.Errorf("invalid receipts target: %s", val)
Expand Down

0 comments on commit c2e2f22

Please sign in to comment.