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

Method GetCompanys

11_app_dev/chaincode_example03.go:274–276  ·  view source on GitHub ↗

GetCompanys keeps the historical example name available.

(ctx contractapi.TransactionContextInterface)

Source from the content-addressed store, hash-verified

272
273// GetCompanys keeps the historical example name available.
274func (s *SmartContract) GetCompanys(ctx contractapi.TransactionContextInterface) ([]Company, error) {
275 return s.GetCompanies(ctx)
276}
277
278func (s *SmartContract) GetTransactions(ctx contractapi.TransactionContextInterface) ([]Transaction, error) {
279 count, err := currentID(ctx, transferCounterKey)

Callers

nothing calls this directly

Calls 1

GetCompaniesMethod · 0.95

Tested by

no test coverage detected