(ctx contractapi.TransactionContextInterface)
| 332 | } |
| 333 | |
| 334 | func readCenterBank(ctx contractapi.TransactionContextInterface) (*CenterBank, error) { |
| 335 | var centerBank CenterBank |
| 336 | if err := readJSON(ctx, centerBankKey, ¢erBank); err != nil { |
| 337 | return nil, err |
| 338 | } |
| 339 | return ¢erBank, nil |
| 340 | } |
| 341 | |
| 342 | func readBank(ctx contractapi.TransactionContextInterface, id int) (*Bank, error) { |
| 343 | var bank Bank |
no test coverage detected