(ctx contractapi.TransactionContextInterface, id int)
| 348 | } |
| 349 | |
| 350 | func readCompany(ctx contractapi.TransactionContextInterface, id int) (*Company, error) { |
| 351 | var company Company |
| 352 | if err := readJSON(ctx, companyKey(id), &company); err != nil { |
| 353 | return nil, err |
| 354 | } |
| 355 | return &company, nil |
| 356 | } |
| 357 | |
| 358 | func readTransaction(ctx contractapi.TransactionContextInterface, id int) (*Transaction, error) { |
| 359 | var transaction Transaction |
no test coverage detected