Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrStateNotFound = errors.New("State was not found")
)
Technical state errors TODO: make errors constant
Functions ¶
func GetState ¶
func GetState(ctx contractapi.TransactionContextInterface, key string, v interface{}) (err error)
GetState is a function to get data from the World State that will return an error if the state does not exist and that will unmarshal to a specified empty interface if found
func PutState ¶
func PutState(ctx contractapi.TransactionContextInterface, key string, v interface{}) (err error)
PutState takes care of marshalling the state value before storing it in the World State with the specified key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.