MCPcopy
hub / github.com/yeasy/blockchain_guide / GetHomeByAddress

Method GetHomeByAddress

11_app_dev/chaincode_example05.go:154–156  ·  view source on GitHub ↗
(ctx contractapi.TransactionContextInterface, address string)

Source from the content-addressed store, hash-verified

152}
153
154func (s *SmartContract) GetHomeByAddress(ctx contractapi.TransactionContextInterface, address string) (*Home, error) {
155 return readHome(ctx, address)
156}
157
158func (s *SmartContract) GetHomes(ctx contractapi.TransactionContextInterface) ([]Home, error) {
159 count, err := currentID(ctx, homeCounterKey)

Callers

nothing calls this directly

Calls 1

readHomeFunction · 0.85

Tested by

no test coverage detected