Skip to content

Commit

Permalink
Merge pull request #1633 from statechannels/chain-service-constructor
Browse files Browse the repository at this point in the history
chain service constructor returns interface
  • Loading branch information
geoknee committed Sep 6, 2023
2 parents ccd4dbe + cfea87e commit d7dcf29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

func InitializeNode(pkString string, chainOpts chain.ChainOpts,
useDurableStore bool, durableStoreFolder string, msgPort int, bootPeers []string,
) (*node.Node, *store.Store, *p2pms.P2PMessageService, *chainservice.EthChainService, error) {
) (*node.Node, *store.Store, *p2pms.P2PMessageService, chainservice.ChainService, error) {
if pkString == "" {
panic("pk must be set")
}
Expand Down
2 changes: 1 addition & 1 deletion node/engine/chainservice/eth_chainservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const RESUB_INTERVAL = 15 * time.Second
const REQUIRED_BLOCK_CONFIRMATIONS = 2

// NewEthChainService is a convenient wrapper around newEthChainService, which provides a simpler API
func NewEthChainService(chainOpts chain.ChainOpts) (*EthChainService, error) {
func NewEthChainService(chainOpts chain.ChainOpts) (ChainService, error) {
if chainOpts.ChainPk == "" {
return nil, fmt.Errorf("chainpk must be set")
}
Expand Down

0 comments on commit d7dcf29

Please sign in to comment.