...

Package example03

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

Overview ▾

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

type SimpleChaincode

SimpleChaincode example simple Chaincode implementation

type SimpleChaincode struct{}

func (*SimpleChaincode) Init

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

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

Invoke is a no-op

Subdirectories

Name Synopsis
..
cmd