resolved the issue

Signed-off-by: Pritam Singh <pkspritam10@gmail.com>
This commit is contained in:
Pritam Singh 2020-04-08 16:14:39 +05:30
parent 2436db04f6
commit d493f6a5cc
2 changed files with 6 additions and 6 deletions

View file

@ -121,15 +121,15 @@ func (t *ABstore) Query(ctx contractapi.TransactionContextInterface, A string) (
jsonResp := "{\"Name\":\"" + A + "\",\"Amount\":\"" + string(Avalbytes) + "\"}"
fmt.Printf("Query Response:%s\n", jsonResp)
return jsonResp, nil
return string(Avalbytes), nil
}
func main() {
cc,err:=contractapi.NewChaincode(new(ABstore))
if err!=nil{
cc, err := contractapi.NewChaincode(new(ABstore))
if err != nil {
panic(err.Error())
}
if err := cc.Start(); err != nil {
fmt.Printf("Error starting ABstore chaincode: %s", err)
}
}
}

View file

@ -1,5 +1,5 @@
module github.com/Zzocker/fabric-samples/chaincode/abstore/go
module github.com/hyperledger/fabric-samples/chaincode/abstore/go
go 1.14
go 1.13
require github.com/hyperledger/fabric-contract-api-go v1.0.0