1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Merge branch 'feature/compute-test' of https://github.com/oceanprotocol/ocean-lib-js into feature/compute-test

This commit is contained in:
alexcos20 2020-07-13 02:13:00 -07:00
commit fbbffa4eff

View File

@ -60,7 +60,7 @@ export class Provider extends Instantiable {
this.getEncryptEndpoint(), this.getEncryptEndpoint(),
decodeURI(JSON.stringify(args)) decodeURI(JSON.stringify(args))
) )
return await response.text() return (await response.json()).encryptedDocument
} catch (e) { } catch (e) {
this.logger.error(e) this.logger.error(e)
throw new Error('HTTP request failed') throw new Error('HTTP request failed')