Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: wuqiaomin <wuqiaomin2@huawei.com>
  • Loading branch information
wuqiaomin authored and ale-linux committed Jun 30, 2021
1 parent b034225 commit 1f1c303
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions integration/chaincode/kvexecutor/chaincode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)

Expand All @@ -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)")
}
Expand Down
2 changes: 1 addition & 1 deletion integration/chaincode/kvexecutor/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion integration/ledger/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand Down
4 changes: 2 additions & 2 deletions integration/pvtdata/implicit_coll_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1f1c303

Please sign in to comment.