Skip to content

Commit

Permalink
fix: lint for mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Jan 2, 2025
1 parent 1af099c commit 8b4969c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/eth/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
12 changes: 12 additions & 0 deletions core/mock/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8b4969c

Please sign in to comment.