Skip to content

Commit

Permalink
allow default_logs hint (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
TymKh authored Oct 31, 2023
1 parent a8331b2 commit 78ffdbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/url_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var (

ErrEmptyHintQuery = errors.New("Hint query must be non-empty if set.")
ErrEmptyTargetBuilderQuery = errors.New("Target builder query must be non-empty if set.")
ErrIncorrectAuctionHints = errors.New("Incorrect auction hint, must be one of: contract_address, function_selector, logs, calldata.")
ErrIncorrectAuctionHints = errors.New("Incorrect auction hint, must be one of: contract_address, function_selector, logs, calldata, default_logs.")
ErrIncorrectOriginId = errors.New("Incorrect origin id, must be less then 255 char.")
ErrIncorrectRefundQuery = errors.New("Incorrect refund query, must be 0xaddress:percentage.")
ErrIncorrectRefundAddressQuery = errors.New("Incorrect refund address.")
Expand Down Expand Up @@ -50,7 +50,7 @@ func ExtractParametersFromUrl(url *url.URL, allBuilders []string) (params URLPar
}
for _, hint := range hintQuery {
// valid hints are: "hash", "contract_address", "function_selector", "logs", "calldata"
if hint != "hash" && hint != "contract_address" && hint != "function_selector" && hint != "logs" && hint != "calldata" {
if hint != "hash" && hint != "contract_address" && hint != "function_selector" && hint != "logs" && hint != "calldata" && hint != "default_logs" {
return params, ErrIncorrectAuctionHints
}
}
Expand Down

0 comments on commit 78ffdbb

Please sign in to comment.