Skip to content

Commit 669358b

Browse files
committed
[FAB-3616] Renaming the generateChaincode func
The func actually generate a ChaincodeDeploymentSpec. Change-Id: Ia3a3b71cf30a33b58a1cbdb3aec19f44da8a933e Signed-off-by: Baohua Yang <[email protected]>
1 parent f68f939 commit 669358b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

peer/chaincode/install.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ func install(msg proto.Message, cf *ChaincodeCmdFactory) error {
8888
return nil
8989
}
9090

91-
//generateChaincode creates ChaincodeDeploymentSpec as the package to install
92-
func generateChaincode(cmd *cobra.Command, chaincodeName, chaincodeVersion string) (*pb.ChaincodeDeploymentSpec, error) {
91+
//genChaincodeDeploymentSpec creates ChaincodeDeploymentSpec as the package to install
92+
func genChaincodeDeploymentSpec(cmd *cobra.Command, chaincodeName, chaincodeVersion string) (*pb.ChaincodeDeploymentSpec, error) {
9393
if existed, _ := ccprovider.ChaincodePackageExists(chaincodeName, chaincodeVersion); existed {
9494
return nil, fmt.Errorf("chaincode %s:%s already exists", chaincodeName, chaincodeVersion)
9595
}
@@ -167,7 +167,7 @@ func chaincodeInstall(cmd *cobra.Command, ccpackfile string, cf *ChaincodeCmdFac
167167
return fmt.Errorf("Must supply value for %s name, path and version parameters.", chainFuncName)
168168
}
169169
//generate a raw ChaincodeDeploymentSpec
170-
ccpackmsg, err = generateChaincode(cmd, chaincodeName, chaincodeVersion)
170+
ccpackmsg, err = genChaincodeDeploymentSpec(cmd, chaincodeName, chaincodeVersion)
171171
if err != nil {
172172
return err
173173
}

0 commit comments

Comments
 (0)