Skip to content

Commit

Permalink
fix_: generate network.go mock
Browse files Browse the repository at this point in the history
  • Loading branch information
friofry committed Jan 28, 2025
1 parent eb69380 commit 4f73cb2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions rpc/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ import (
persistence "github.com/status-im/status-go/rpc/network/db"
)

type CombinedNetwork struct {
Prod *params.Network
Test *params.Network
}

//go:generate mockgen -package=mock -source=network.go -destination=mock/network.go
type ManagerInterface interface {
InitEmbeddedNetworks(networks []params.Network) error

Expand All @@ -37,6 +33,11 @@ type ManagerInterface interface {
SetEnabled(chainID uint64, enabled bool) error
}

type CombinedNetwork struct {
Prod *params.Network
Test *params.Network
}

type Manager struct {
db *sql.DB
accountsDB *accounts.Database
Expand Down

0 comments on commit 4f73cb2

Please sign in to comment.