diff --git a/integration/chaincode/kvexecutor/chaincode.go b/integration/chaincode/kvexecutor/chaincode.go index e918883c0ea..bfc4011177d 100644 --- a/integration/chaincode/kvexecutor/chaincode.go +++ b/integration/chaincode/kvexecutor/chaincode.go @@ -16,10 +16,10 @@ import ( "github.com/pkg/errors" ) -// KVExcutor is a chaincode implementation that takes a KVData array as read parameter +// KVExecutor is a chaincode implementation that takes a KVData array as read parameter // and a a KVData array as write parameter, and then calls GetXXX/PutXXX methods to read and write // state/collection data. Both input params should be marshalled json data and then base64 encoded. -type KVExcutor struct{} +type KVExecutor struct{} // KVData contains the data to read/write a key. // Key is required. Value is required for write and ignored for read. @@ -33,13 +33,13 @@ type KVData struct { // Init initializes chaincode // =========================== -func (t *KVExcutor) Init(stub shim.ChaincodeStubInterface) pb.Response { +func (t *KVExecutor) Init(stub shim.ChaincodeStubInterface) pb.Response { return shim.Success(nil) } // Invoke - Our entry point for Invocations // ======================================== -func (t *KVExcutor) Invoke(stub shim.ChaincodeStubInterface) pb.Response { +func (t *KVExecutor) Invoke(stub shim.ChaincodeStubInterface) pb.Response { function, args := stub.GetFunctionAndParameters() fmt.Println("invoke is running " + function) @@ -54,7 +54,7 @@ func (t *KVExcutor) Invoke(stub shim.ChaincodeStubInterface) pb.Response { } // both params should be marshalled json data and base64 encoded -func (t *KVExcutor) readWriteKVs(stub shim.ChaincodeStubInterface, args []string) pb.Response { +func (t *KVExecutor) readWriteKVs(stub shim.ChaincodeStubInterface, args []string) pb.Response { if len(args) != 2 { return shim.Error("Incorrect number of arguments. Expecting 2 (readInputs and writeInputs)") } diff --git a/integration/chaincode/kvexecutor/cmd/main.go b/integration/chaincode/kvexecutor/cmd/main.go index 953ad18f36f..6ccd5b2d70e 100644 --- a/integration/chaincode/kvexecutor/cmd/main.go +++ b/integration/chaincode/kvexecutor/cmd/main.go @@ -15,7 +15,7 @@ import ( ) func main() { - err := shim.Start(&kvexecutor.KVExcutor{}) + err := shim.Start(&kvexecutor.KVExecutor{}) if err != nil { fmt.Fprintf(os.Stderr, "Exiting Simple chaincode: %s", err) os.Exit(2) diff --git a/integration/ledger/snapshot_test.go b/integration/ledger/snapshot_test.go index dec632d6595..9684f6b833f 100644 --- a/integration/ledger/snapshot_test.go +++ b/integration/ledger/snapshot_test.go @@ -294,7 +294,7 @@ var _ = Describe("Snapshot Generation and Bootstrap", func() { Path: components.Build("github.com/hyperledger/fabric/integration/chaincode/kvexecutor/cmd"), Lang: "binary", SignaturePolicy: `OR ('Org1MSP.member','Org2MSP.member', 'Org3MSP.member', 'Org4MSP.member')`, - PackageFile: filepath.Join(setup.testDir, "kvexcutor20.tar.gz"), + PackageFile: filepath.Join(setup.testDir, "kvexecutor20.tar.gz"), Label: "kvexecutor-20", Sequence: "1", } diff --git a/integration/pvtdata/implicit_coll_test.go b/integration/pvtdata/implicit_coll_test.go index bd5a4b126c4..404791fd295 100644 --- a/integration/pvtdata/implicit_coll_test.go +++ b/integration/pvtdata/implicit_coll_test.go @@ -68,8 +68,8 @@ var _ bool = Describe("Pvtdata dissemination for implicit collection", func() { Version: "1.0", Path: components.Build("github.com/hyperledger/fabric/integration/chaincode/kvexecutor/cmd"), Lang: "binary", - PackageFile: filepath.Join(network.RootDir, "kvexcutor.tar.gz"), - Label: "kvexcutor", + PackageFile: filepath.Join(network.RootDir, "kvexecutor.tar.gz"), + Label: "kvexecutor", Sequence: "1", }, isLegacy: false,