Skip to content

Commit ce9fcdc

Browse files
committed
Print ChaincodeName when deploy with CLI
Print out ChaincodeName as doc said so that we can reference it when invoking or querying deployed chaincode. Change-Id: Id264b00d694d5d303f035acbe9e212a020a03da0 Signed-off-by: jiangyaoguo <[email protected]>
1 parent f7f5dc3 commit ce9fcdc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

peer/chaincode/deploy.go

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func chaincodeDeploy(cmd *cobra.Command, args []string) error {
5959
return fmt.Errorf("Error building %s: %s\n", chainFuncName, err)
6060
}
6161
logger.Infof("Deploy result: %s", chaincodeDeploymentSpec.ChaincodeSpec)
62+
fmt.Printf("Deploy chaincode: %s\n", chaincodeDeploymentSpec.ChaincodeSpec.ChaincodeID.Name)
6263

6364
return nil
6465
}

0 commit comments

Comments
 (0)