1 Star 0 Fork 0

妥協/fabric

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
chaincode.go 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package peer
// Name implements the platforms.NameDescriber interface
func (cs *ChaincodeSpec) Name() string {
if cs.ChaincodeId == nil {
return ""
}
return cs.ChaincodeId.Name
}
func (cs *ChaincodeSpec) Version() string {
if cs.ChaincodeId == nil {
return ""
}
return cs.ChaincodeId.Version
}
// Path implements the platforms.PathDescriber interface
func (cs *ChaincodeSpec) Path() string {
if cs.ChaincodeId == nil {
return ""
}
return cs.ChaincodeId.Path
}
func (cs *ChaincodeSpec) CCType() string {
return cs.Type.String()
}
// Path implements the platforms.PathDescriber interface
func (cds *ChaincodeDeploymentSpec) Path() string {
if cds.ChaincodeSpec == nil {
return ""
}
return cds.ChaincodeSpec.Path()
}
// Bytes implements the platforms.CodePackage interface
func (cds *ChaincodeDeploymentSpec) Bytes() []byte {
return cds.CodePackage
}
func (cds *ChaincodeDeploymentSpec) CCType() string {
if cds.ChaincodeSpec == nil {
return ""
}
return cds.ChaincodeSpec.CCType()
}
func (cds *ChaincodeDeploymentSpec) Name() string {
if cds.ChaincodeSpec == nil {
return ""
}
return cds.ChaincodeSpec.Name()
}
func (cds *ChaincodeDeploymentSpec) Version() string {
if cds.ChaincodeSpec == nil {
return ""
}
return cds.ChaincodeSpec.Version()
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liurenhao/fabric.git
git@gitee.com:liurenhao/fabric.git
liurenhao
fabric
fabric
v1.4.12

搜索帮助