(req)
| 29 | } |
| 30 | |
| 31 | _req(req) { |
| 32 | return new Promise((res, rej) => { |
| 33 | req.onsuccess = () => res(req.result); |
| 34 | req.onerror = () => rej(req.error); |
| 35 | }); |
| 36 | } |
| 37 | |
| 38 | getBytes(hash) { |
| 39 | return this._req(this._tx('cas', 'readonly').get(hash)); |
no outgoing calls
no test coverage detected