diff --git a/client/discovery/gossip_discovery_service.go b/client/discovery/gossip_discovery_service.go index e0b52ce..b71fe78 100644 --- a/client/discovery/gossip_discovery_service.go +++ b/client/discovery/gossip_discovery_service.go @@ -5,6 +5,7 @@ import ( "fmt" "github.com/hyperledger/fabric-protos-go/discovery" + "github.com/hyperledger/fabric-protos-go/peer" discClient "github.com/hyperledger/fabric/discovery/client" ) @@ -31,8 +32,8 @@ func (s *gossipServiceDiscovery) DiscoverChaincode(ctx context.Context, ccName, OfChannel(chanName). AddPeersQuery(). AddConfigQuery(). - AddEndorsersQuery(&discovery.ChaincodeInterest{ - Chaincodes: []*discovery.ChaincodeCall{ + AddEndorsersQuery(&peer.ChaincodeInterest{ + Chaincodes: []*peer.ChaincodeCall{ {Name: ccName}, }, }) @@ -46,7 +47,7 @@ func (s *gossipServiceDiscovery) DiscoverChaincode(ctx context.Context, ccName, } chanEndorsers, err := res.ForChannel(chanName).Endorsers(discClient.InvocationChain{ - &discovery.ChaincodeCall{ + &peer.ChaincodeCall{ Name: ccName, }, }, discClient.NoFilter) diff --git a/go.mod b/go.mod index 621baa9..6731d58 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/hashicorp/vault/api v1.10.0 github.com/hyperledger/fabric v1.4.0-rc1.0.20200930182727-344fda602252 github.com/hyperledger/fabric-chaincode-go v0.0.0-20201119163726-f8ef75b17719 - github.com/hyperledger/fabric-protos-go v0.0.0-20201028172056-a3136dde2354 + github.com/hyperledger/fabric-protos-go v0.3.3 github.com/mitchellh/mapstructure v1.5.0 github.com/onsi/ginkgo v1.14.0 github.com/onsi/gomega v1.27.10 diff --git a/go.sum b/go.sum index 6250a38..7802237 100644 --- a/go.sum +++ b/go.sum @@ -252,8 +252,9 @@ github.com/hyperledger/fabric-lib-go v1.0.0 h1:UL1w7c9LvHZUSkIvHTDGklxFv2kTeva1Q github.com/hyperledger/fabric-lib-go v1.0.0/go.mod h1:H362nMlunurmHwkYqR5uHL2UDWbQdbfz74n8kbCFsqc= github.com/hyperledger/fabric-protos-go v0.0.0-20190919234611-2a87503ac7c9/go.mod h1:xVYTjK4DtZRBxZ2D9aE4y6AbLaPwue2o/criQyQbVD0= github.com/hyperledger/fabric-protos-go v0.0.0-20200424173316-dd554ba3746e/go.mod h1:xVYTjK4DtZRBxZ2D9aE4y6AbLaPwue2o/criQyQbVD0= -github.com/hyperledger/fabric-protos-go v0.0.0-20201028172056-a3136dde2354 h1:6vLLEpvDbSlmUJFjg1hB5YMBpI+WgKguztlONcAFBoY= github.com/hyperledger/fabric-protos-go v0.0.0-20201028172056-a3136dde2354/go.mod h1:xVYTjK4DtZRBxZ2D9aE4y6AbLaPwue2o/criQyQbVD0= +github.com/hyperledger/fabric-protos-go v0.3.3 h1:0nssqz8QWJNVNBVQz+IIfAd2j1ku7QPKFSM/1anKizI= +github.com/hyperledger/fabric-protos-go v0.3.3/go.mod h1:BPXse9gIOQwyAePQrwQVUcc44bTW4bB5V3tujuvyArk= github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd h1:anPrsicrIi2ColgWTVPk+TrN42hJIWlfPHSBP9S0ZkM= github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd/go.mod h1:3LVOLeyx9XVvwPgrt2be44XgSqndprz1G18rSk8KD84= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=