From 0dbf9edc81877f062e10fdc8cbfc3bac97d19481 Mon Sep 17 00:00:00 2001 From: TymKh Date: Thu, 21 Aug 2025 18:26:19 +0200 Subject: [PATCH] fix test --- server/url_params.go | 2 +- server/url_params_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/url_params.go b/server/url_params.go index 661339b..78b04e5 100644 --- a/server/url_params.go +++ b/server/url_params.go @@ -204,7 +204,7 @@ func ExtractParametersFromUrl(reqUrl *url.URL, allBuilders []string) (params URL } params.auctionTimeout = uint64(timeout) } - allowBob := normalizedQuery["allowbob"] + allowBob := normalizedQuery["allowtee"] if len(allowBob) != 0 { allowBobValue, err := strconv.ParseBool(allowBob[0]) if err != nil { diff --git a/server/url_params_test.go b/server/url_params_test.go index 7e7b0a0..7ad95d6 100644 --- a/server/url_params_test.go +++ b/server/url_params_test.go @@ -191,7 +191,7 @@ func TestExtractAuctionPreferenceFromUrl(t *testing.T) { url: "https://rpc.flashbots.net/fast", want: URLParameters{ pref: types.PrivateTxPreferences{ - Privacy: types.TxPrivacyPreferences{Hints: []string{"hash", "special_logs"}, Builders: []string{"builder1", "builder2"}}, + Privacy: types.TxPrivacyPreferences{Hints: []string{"hash", "special_logs"}, Builders: []string{"builder1", "builder2"}, AllowTEE: true}, Fast: true, }, prefWasSet: false, @@ -204,7 +204,7 @@ func TestExtractAuctionPreferenceFromUrl(t *testing.T) { url: "https://rpc.flashbots.net/fast?builder=builder3&builder=builder4", want: URLParameters{ pref: types.PrivateTxPreferences{ - Privacy: types.TxPrivacyPreferences{Hints: []string{"hash", "special_logs"}, Builders: []string{"builder1", "builder2"}}, + Privacy: types.TxPrivacyPreferences{Hints: []string{"hash", "special_logs"}, Builders: []string{"builder1", "builder2"}, AllowTEE: true}, Fast: true, }, prefWasSet: false, @@ -217,7 +217,7 @@ func TestExtractAuctionPreferenceFromUrl(t *testing.T) { url: "https://rpc.flashbots.net/fast?hint=contract_address&hint=function_selector&hint=logs&hint=calldata&hint=hash", want: URLParameters{ pref: types.PrivateTxPreferences{ - Privacy: types.TxPrivacyPreferences{Hints: []string{"contract_address", "function_selector", "logs", "calldata", "hash"}, Builders: []string{"builder1", "builder2"}}, + Privacy: types.TxPrivacyPreferences{Hints: []string{"contract_address", "function_selector", "logs", "calldata", "hash"}, Builders: []string{"builder1", "builder2"}, AllowTEE: true}, Fast: true, }, prefWasSet: true, @@ -230,7 +230,7 @@ func TestExtractAuctionPreferenceFromUrl(t *testing.T) { url: "https://rpc.flashbots.net/fast?hint=contract_address&hint=function_selector&hint=logs&hint=calldata&hint=hash&auctionTimeout=1000", want: URLParameters{ pref: types.PrivateTxPreferences{ - Privacy: types.TxPrivacyPreferences{Hints: []string{"contract_address", "function_selector", "logs", "calldata", "hash"}, Builders: []string{"builder1", "builder2"}}, + Privacy: types.TxPrivacyPreferences{Hints: []string{"contract_address", "function_selector", "logs", "calldata", "hash"}, Builders: []string{"builder1", "builder2"}, AllowTEE: true}, Fast: true, }, prefWasSet: true,