fabric: github.com/hyperledger/fabric/examples/chaincode/go/example03 Index | Files | Directories

package example03

import "github.com/hyperledger/fabric/examples/chaincode/go/example03"

This program is an erroneous chaincode program that attempts to put state in query context - query should return error

Index

Package Files

chaincode.go

type SimpleChaincode Uses

type SimpleChaincode struct{}

SimpleChaincode example simple Chaincode implementation

func (*SimpleChaincode) Init Uses

func (t *SimpleChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response

Init takes a string and int. These are stored as a key/value pair in the state

func (*SimpleChaincode) Invoke Uses

func (t *SimpleChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response

Invoke is a no-op

Directories

PathSynopsis
cmd

Package example03 imports 4 packages (graph) and is imported by 1 packages. Updated 2018-07-17. Refresh now. Tools for package owners.