From 34512a7e163f22a68b835837e6e1a75a5ad09f87 Mon Sep 17 00:00:00 2001 From: grapebaba <281165273@qq.com> Date: Thu, 11 Aug 2016 11:41:18 +0800 Subject: [PATCH] Fix typo Change-Id: Ic1d52d2e4a4da22f2f9ebdbc805174b34c5052b3 Signed-off-by: grapebaba <281165273@qq.com> --- core/chaincode/shim/chaincode.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/chaincode/shim/chaincode.go b/core/chaincode/shim/chaincode.go index b4dc8eab670..61ec5159e51 100644 --- a/core/chaincode/shim/chaincode.go +++ b/core/chaincode/shim/chaincode.go @@ -803,7 +803,7 @@ func getKeyAndVerifyRow(table Table, row Row) ([]Column, error) { return keys, nil } -func (stub *ChaincodeStub) isRowPrsent(tableName string, key []Column) (bool, error) { +func (stub *ChaincodeStub) isRowPresent(tableName string, key []Column) (bool, error) { keyString, err := buildKeyString(tableName, key) if err != nil { return false, err @@ -822,7 +822,7 @@ func (stub *ChaincodeStub) isRowPrsent(tableName string, key []Column) (bool, er // Returns - // true and no error if the row is successfully inserted. // false and no error if a row already exists for the given key. -// flase and a TableNotFoundError if the specified table name does not exist. +// false and a TableNotFoundError if the specified table name does not exist. // false and an error if there is an unexpected error condition. func (stub *ChaincodeStub) insertRowInternal(tableName string, row Row, update bool) (bool, error) { @@ -836,7 +836,7 @@ func (stub *ChaincodeStub) insertRowInternal(tableName string, row Row, update b return false, err } - present, err := stub.isRowPrsent(tableName, key) + present, err := stub.isRowPresent(tableName, key) if err != nil { return false, err }