{"modulePath":"github.com/sachdev18/sachdevr.18","version":"v0.6.1-preview","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\nThis program is an erroneous chaincode program that attempts to put state in query context - query should return error\n\n## Types\n\n```go\ntype SimpleChaincode struct {\n}\n```\nSimpleChaincode example simple Chaincode implementation\n\n```go\nfunc (t *SimpleChaincode) Init(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)\n```\nInit takes a string and int. These are stored as a key/value pair in the state\n\n```go\nfunc (t *SimpleChaincode) Invoke(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)\n```\nInvoke is a no-op\n\n```go\nfunc (t *SimpleChaincode) Query(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)\n```\nQuery callback representing the query of a chaincode\n\n","path":"github.com/sachdev18/sachdevr.18/examples/chaincode/go/chaincode_example03","name":"main","synopsis":"This program is an erroneous chaincode program that attempts to put state in query context - query should return error","isRedistributable":true}
