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

Method GetCenterBank

11_app_dev/chaincode_example03.go:213–215  ·  view source on GitHub ↗
(ctx contractapi.TransactionContextInterface)

Source from the content-addressed store, hash-verified

211}
212
213func (s *SmartContract) GetCenterBank(ctx contractapi.TransactionContextInterface) (*CenterBank, error) {
214 return readCenterBank(ctx)
215}
216
217func (s *SmartContract) GetBankByID(ctx contractapi.TransactionContextInterface, id string) (*Bank, error) {
218 bankID, err := strconv.Atoi(id)

Callers

nothing calls this directly

Calls 1

readCenterBankFunction · 0.85

Tested by

no test coverage detected