Skip to content

Commit

Permalink
[FAB-7432] Fix hard-coded chaincodespec type
Browse files Browse the repository at this point in the history
This patch fixes chaincodespec type hard coded to 1 in createCIS()
fabric/core/chaincode/chaincodeexec.go

Change-Id: I8865dbbfe9d0f28920cea91b89de32b20a21da0a
Signed-off-by: Tatsuya Sato <tatsuya.sato.so@hitachi.com>
  • Loading branch information
satota2 authored and Nao Nishijima committed Jan 31, 2018
1 parent d7dd231 commit 6f956a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/chaincode/chaincodeexec.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
//create a chaincode invocation spec
func createCIS(ccname string, args [][]byte) (*pb.ChaincodeInvocationSpec, error) {
var err error
spec := &pb.ChaincodeInvocationSpec{ChaincodeSpec: &pb.ChaincodeSpec{Type: 1, ChaincodeId: &pb.ChaincodeID{Name: ccname}, Input: &pb.ChaincodeInput{Args: args}}}
spec := &pb.ChaincodeInvocationSpec{ChaincodeSpec: &pb.ChaincodeSpec{Type: pb.ChaincodeSpec_Type(pb.ChaincodeSpec_Type_value["GOLANG"]), ChaincodeId: &pb.ChaincodeID{Name: ccname}, Input: &pb.ChaincodeInput{Args: args}}}
if nil != err {
return nil, err
}
Expand Down

0 comments on commit 6f956a4

Please sign in to comment.