(ctx contractapi.TransactionContextInterface, home *Home)
| 200 | } |
| 201 | |
| 202 | func putHome(ctx contractapi.TransactionContextInterface, home *Home) error { |
| 203 | if err := putJSON(ctx, homeKey(home.Address), home); err != nil { |
| 204 | return err |
| 205 | } |
| 206 | return ctx.GetStub().PutState(homeIDKey(home.ID), []byte(home.Address)) |
| 207 | } |
| 208 | |
| 209 | func readHome(ctx contractapi.TransactionContextInterface, address string) (*Home, error) { |
| 210 | var home Home |
no test coverage detected