(ctx contractapi.TransactionContextInterface, id int)
| 356 | } |
| 357 | |
| 358 | func readTransaction(ctx contractapi.TransactionContextInterface, id int) (*Transaction, error) { |
| 359 | var transaction Transaction |
| 360 | if err := readJSON(ctx, transactionKey(id), &transaction); err != nil { |
| 361 | return nil, err |
| 362 | } |
| 363 | return &transaction, nil |
| 364 | } |
| 365 | |
| 366 | func nextID(ctx contractapi.TransactionContextInterface, counterKey string) (int, error) { |
| 367 | id, err := currentID(ctx, counterKey) |
no test coverage detected