-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove legacy secrets support #10865
Conversation
I see that you haven't updated any README files. Would it make sense to do so? |
I see that you haven't updated any CHANGELOG files. Would it make sense to do so? |
Data *computationData `json:"data"` | ||
} | ||
|
||
type computationData struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add omitempty to Secrets field in RequestData instead of creating a copy of the same struct?
@@ -13,7 +13,7 @@ import ( | |||
var ( | |||
// a batch of 8 max-length results uses around 2M gas (assuming 70k gas per client callback - see FunctionsClientExample.sol) | |||
nOracleNodes = 4 | |||
nClients = 50 | |||
nClients = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
@@ -27,33 +27,6 @@ func TestIntegration_Functions_MultipleV1Requests_Success(t *testing.T) { | |||
|
|||
utils.SetupRouterRoutes(t, b, owner, routerContract, active.Address, proposed.Address, allowListContractAddress) | |||
|
|||
_, _, oracleIdentities := utils.CreateFunctionsNodes(t, owner, b, routerAddress, nOracleNodes, maxGas, nil, nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you removing this? Can't we keep it with empty secrets?
core/services/ocr2/plugins/functions/integration_tests/v1/functions_integration_test.go
Show resolved
Hide resolved
core/services/ocr2/plugins/functions/integration_tests/v1/functions_integration_test.go
Show resolved
Hide resolved
require.Equal(t, functions.LocationRemote, int(data["secretsLocation"].(float64))) | ||
if data["secrets"] != DefaultSecretsBase64 && request["nodeProvidedSecrets"] != fmt.Sprintf(`{"0x0":"%s"}`, DefaultSecretsBase64) { | ||
assert.Fail(t, "expected secrets or nodeProvidedSecrets to be '%s'", DefaultSecretsBase64) | ||
if data["secrets"] != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"secrets" will always be nil now, right? Did you mean to check "nodeProvidedSecrets" here?
SonarQube Quality Gate |
No description provided.