Skip to content
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

Fix unit tests and lint #234

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion churner/churner.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
var (
bipMultiplier = big.NewInt(10000)
secondsTillExpiry = 90 * time.Second
zeroAddressString = "0x0000000000000000000000000000000000000000"
)

type ChurnRequest struct {
Expand Down
2 changes: 2 additions & 0 deletions churner/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading