Skip to content

Commit

Permalink
Print ChaincodeName when deploy with CLI
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jiangyaoguo committed Sep 9, 2016
1 parent f7f5dc3 commit ce9fcdc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions peer/chaincode/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func chaincodeDeploy(cmd *cobra.Command, args []string) error {
return fmt.Errorf("Error building %s: %s\n", chainFuncName, err)
}
logger.Infof("Deploy result: %s", chaincodeDeploymentSpec.ChaincodeSpec)
fmt.Printf("Deploy chaincode: %s\n", chaincodeDeploymentSpec.ChaincodeSpec.ChaincodeID.Name)

return nil
}

0 comments on commit ce9fcdc

Please sign in to comment.