(ctx contractapi.TransactionContextInterface, id int)
| 340 | } |
| 341 | |
| 342 | func readBank(ctx contractapi.TransactionContextInterface, id int) (*Bank, error) { |
| 343 | var bank Bank |
| 344 | if err := readJSON(ctx, bankKey(id), &bank); err != nil { |
| 345 | return nil, err |
| 346 | } |
| 347 | return &bank, nil |
| 348 | } |
| 349 | |
| 350 | func readCompany(ctx contractapi.TransactionContextInterface, id int) (*Company, error) { |
| 351 | var company Company |
no test coverage detected