From 57808aba29ef8f3034f076ed6a3553b6eeab72ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Negovanovi=C4=87?= Date: Fri, 29 Dec 2023 10:40:46 +0100 Subject: [PATCH] Fix legacy e2e tests --- jsonrpc/eth_endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonrpc/eth_endpoint.go b/jsonrpc/eth_endpoint.go index dc7e36e30e..5c922a17d8 100644 --- a/jsonrpc/eth_endpoint.go +++ b/jsonrpc/eth_endpoint.go @@ -123,7 +123,7 @@ func NewEth( err error ) - if secretsManager != nil { + if secretsManager != nil && secretsManager.HasSecret(secrets.ValidatorKey) { ecdsaKey, err = polyWallet.GetEcdsaFromSecret(secretsManager) if err != nil { return nil, fmt.Errorf("failed to read account ECDSA key: %w", err)