From 0790ba6465b983ee3945b1d9d54dd35ca5d3d664 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 28 Jan 2020 15:43:16 +0100 Subject: [PATCH] bump squid-js --- package.json | 2 +- src/index.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index a54c318..33ce269 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "React + squid.js interacting in the most minimal way with Ocean Protocol.", "dependencies": { - "@oceanprotocol/squid": "^2.0.0-beta.0", + "@oceanprotocol/squid": "^2.0.0-beta.1", "react": "^16.12.0", "react-dom": "^16.12.0", "react-scripts": "^3.3.0", diff --git a/src/index.js b/src/index.js index f5c7656..edd0f58 100644 --- a/src/index.js +++ b/src/index.js @@ -76,8 +76,6 @@ class App extends Component { const accounts = await this.state.ocean.accounts.list() // get our registered asset const consumeAsset = this.state.ddo - // get service we want to execute - const service = consumeAsset.findServiceByType('access') // order service agreement const agreement = await this.state.ocean.assets.order( consumeAsset.id, @@ -87,7 +85,6 @@ class App extends Component { await this.state.ocean.assets.consume( agreement, consumeAsset.id, - service.index, accounts[0], '', 0