From 872a828c4edc97ef80ce53e392e2ef0aa635c5d0 Mon Sep 17 00:00:00 2001 From: Robert Raynor <35671663+mooselumph@users.noreply.github.com> Date: Fri, 2 Feb 2024 02:01:24 +0000 Subject: [PATCH] Fix unit tests and lint --- churner/churner.go | 1 - churner/server_test.go | 2 ++ node/node.go | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/churner/churner.go b/churner/churner.go index 890ba5136c..f990bf8e75 100644 --- a/churner/churner.go +++ b/churner/churner.go @@ -21,7 +21,6 @@ import ( var ( bipMultiplier = big.NewInt(10000) secondsTillExpiry = 90 * time.Second - zeroAddressString = "0x0000000000000000000000000000000000000000" ) type ChurnRequest struct { diff --git a/churner/server_test.go b/churner/server_test.go index 3222f35f93..04a194fec4 100644 --- a/churner/server_test.go +++ b/churner/server_test.go @@ -40,6 +40,7 @@ func TestChurn(t *testing.T) { salt := crypto.Keccak256([]byte(operatorToChurnInPrivateKeyHex), []byte("ChurnRequest")) request := &pb.ChurnRequest{ + OperatorAddress: operatorAddr.Hex(), OperatorToRegisterPubkeyG1: keyPair.PubKey.Serialize(), OperatorToRegisterPubkeyG2: keyPair.GetPubKeyG2().Serialize(), Salt: salt, @@ -49,6 +50,7 @@ func TestChurn(t *testing.T) { var requestHash [32]byte requestHashBytes := crypto.Keccak256( []byte("ChurnRequest"), + []byte(request.OperatorAddress), request.OperatorToRegisterPubkeyG1, request.OperatorToRegisterPubkeyG2, request.Salt, diff --git a/node/node.go b/node/node.go index 39afe5ec66..3681010c89 100644 --- a/node/node.go +++ b/node/node.go @@ -427,6 +427,8 @@ func (n *Node) checkCurrentNodeIp(ctx context.Context) { // we only need to build the sdk clients for eigenmetrics right now, // but we might eventually want to move as much as possible to the sdk +// +//lint:ignore U1000 this function will be used once we move to the sdk func buildSdkClients(config *Config, logger common.Logger) (*constructor.Clients, error) { // we need to make a transactor just so we can get the registryCoordinatorAddr // to pass to the sdk config