@@ -10,12 +10,13 @@ import (
1010 "github.com/golang/protobuf/proto"
1111
1212 "github.com/hyperledger/fabric-sdk-go/pkg/context/api/fab"
13+ "github.com/hyperledger/fabric-sdk-go/pkg/context/api/msp"
1314 "github.com/hyperledger/fabric-sdk-go/pkg/fab/channel"
1415 "github.com/hyperledger/fabric-sdk-go/pkg/fab/peer"
1516 "github.com/hyperledger/fabric-sdk-go/pkg/fab/resource"
1617 "github.com/hyperledger/fabric-sdk-go/pkg/logging"
1718 "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/common"
18- msp "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/msp"
19+ mb "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/msp"
1920 ab "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/orderer"
2021 pb "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/peer"
2122 "github.com/pkg/errors"
@@ -45,7 +46,7 @@ type Option func(opts *Opts) error
4546// Context holds the providers and identity
4647type Context struct {
4748 context.Providers
48- context .Identity
49+ msp .Identity
4950}
5051
5152// ChannelConfig implements query channel configuration
@@ -58,7 +59,7 @@ type ChannelConfig struct {
5859// ChannelCfg contains channel configuration
5960type ChannelCfg struct {
6061 id string
61- msps []* msp .MSPConfig
62+ msps []* mb .MSPConfig
6263 anchorPeers []* fab.OrgAnchorPeer
6364 orderers []string
6465 versions * fab.Versions
@@ -76,7 +77,7 @@ func (cfg *ChannelCfg) ID() string {
7677}
7778
7879// MSPs returns msps
79- func (cfg * ChannelCfg ) MSPs () []* msp .MSPConfig {
80+ func (cfg * ChannelCfg ) MSPs () []* mb .MSPConfig {
8081 return cfg .msps
8182}
8283
@@ -213,7 +214,7 @@ func extractConfig(channelID string, configEnvelope *common.ConfigEnvelope) (*Ch
213214
214215 config := & ChannelCfg {
215216 id : channelID ,
216- msps : []* msp .MSPConfig {},
217+ msps : []* mb .MSPConfig {},
217218 anchorPeers : []* fab.OrgAnchorPeer {},
218219 orderers : []string {},
219220 versions : versions ,
@@ -355,7 +356,7 @@ func loadConfigValue(configItems *ChannelCfg, key string, versionsValue *common.
355356 break
356357
357358 case channelConfig .MSPKey :
358- mspConfig := & msp .MSPConfig {}
359+ mspConfig := & mb .MSPConfig {}
359360 err := proto .Unmarshal (configValue .Value , mspConfig )
360361 if err != nil {
361362 return errors .Wrap (err , "unmarshal MSPConfig from config failed" )
0 commit comments