mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
resolved the issue
Signed-off-by: Pritam Singh <pkspritam10@gmail.com>
This commit is contained in:
parent
2436db04f6
commit
d493f6a5cc
2 changed files with 6 additions and 6 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue