Documentation ¶
Overview ¶
这个程序是一个错误的链式代码程序,它试图将状态放入查询上下文中-查询应该返回错误
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleChaincode ¶
type SimpleChaincode struct{}
simple chaincode示例simple chaincode实现
func (*SimpleChaincode) Init ¶
func (t *SimpleChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response
init接受一个字符串和int。它们在状态中作为键/值对存储。
func (*SimpleChaincode) Invoke ¶
func (t *SimpleChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response
invoke是一个no op
Click to show internal directories.
Click to hide internal directories.