From 8b4969c3934cbaf610d172534ded8823abb34846 Mon Sep 17 00:00:00 2001 From: hopeyen Date: Thu, 2 Jan 2025 10:20:33 -0800 Subject: [PATCH] fix: lint for mocks --- core/eth/state.go | 2 -- core/mock/writer.go | 12 ++++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/core/eth/state.go b/core/eth/state.go index 232152322d..fa529e235b 100644 --- a/core/eth/state.go +++ b/core/eth/state.go @@ -22,8 +22,6 @@ type ChainState struct { socketPrevBlockNumber uint32 } -var defaultQuorumIDs = []core.QuorumID{core.QuorumID(0), core.QuorumID(1)} - func NewChainState(tx core.Reader, client common.EthClient) *ChainState { return &ChainState{ Client: client, diff --git a/core/mock/writer.go b/core/mock/writer.go index b28f88b5f1..9385257b1f 100644 --- a/core/mock/writer.go +++ b/core/mock/writer.go @@ -112,6 +112,18 @@ func (t *MockWriter) StakeRegistry(ctx context.Context) (gethcommon.Address, err return result.(gethcommon.Address), args.Error(1) } +func (t *MockWriter) SocketRegistry(ctx context.Context) (gethcommon.Address, error) { + args := t.Called() + result := args.Get(0) + return result.(gethcommon.Address), args.Error(1) +} + +func (t *MockWriter) RegistryCoordinator(ctx context.Context) (gethcommon.Address, error) { + args := t.Called() + result := args.Get(0) + return result.(gethcommon.Address), args.Error(1) +} + func (t *MockWriter) OperatorIDToAddress(ctx context.Context, operatorId core.OperatorID) (gethcommon.Address, error) { args := t.Called() result := args.Get(0)