(ctx contractapi.TransactionContextInterface, address string)
| 207 | } |
| 208 | |
| 209 | func readHome(ctx contractapi.TransactionContextInterface, address string) (*Home, error) { |
| 210 | var home Home |
| 211 | if err := readJSON(ctx, homeKey(address), &home); err != nil { |
| 212 | return nil, err |
| 213 | } |
| 214 | return &home, nil |
| 215 | } |
| 216 | |
| 217 | func readHomeByID(ctx contractapi.TransactionContextInterface, id int) (*Home, error) { |
| 218 | addressBytes, err := ctx.GetStub().GetState(homeIDKey(id)) |
no test coverage detected