(ctx contractapi.TransactionContextInterface, id string)
| 231 | } |
| 232 | |
| 233 | func (s *SmartContract) GetTransactionByID(ctx contractapi.TransactionContextInterface, id string) (*Transaction, error) { |
| 234 | transactionID, err := strconv.Atoi(id) |
| 235 | if err != nil { |
| 236 | return nil, err |
| 237 | } |
| 238 | return readTransaction(ctx, transactionID) |
| 239 | } |
| 240 | |
| 241 | func (s *SmartContract) GetBanks(ctx contractapi.TransactionContextInterface) ([]Bank, error) { |
| 242 | count, err := currentID(ctx, bankCounterKey) |
nothing calls this directly
no test coverage detected