1
0
mirror of https://github.com/oceanprotocol/react-tutorial synced 2024-11-22 01:36:58 +01:00

bump squid-js

This commit is contained in:
Matthias Kretschmann 2020-01-28 15:43:16 +01:00
parent 0e9de2404b
commit 0790ba6465
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 1 additions and 4 deletions

View File

@ -3,7 +3,7 @@
"version": "1.0.0", "version": "1.0.0",
"description": "React + squid.js interacting in the most minimal way with Ocean Protocol.", "description": "React + squid.js interacting in the most minimal way with Ocean Protocol.",
"dependencies": { "dependencies": {
"@oceanprotocol/squid": "^2.0.0-beta.0", "@oceanprotocol/squid": "^2.0.0-beta.1",
"react": "^16.12.0", "react": "^16.12.0",
"react-dom": "^16.12.0", "react-dom": "^16.12.0",
"react-scripts": "^3.3.0", "react-scripts": "^3.3.0",

View File

@ -76,8 +76,6 @@ class App extends Component {
const accounts = await this.state.ocean.accounts.list() const accounts = await this.state.ocean.accounts.list()
// get our registered asset // get our registered asset
const consumeAsset = this.state.ddo const consumeAsset = this.state.ddo
// get service we want to execute
const service = consumeAsset.findServiceByType('access')
// order service agreement // order service agreement
const agreement = await this.state.ocean.assets.order( const agreement = await this.state.ocean.assets.order(
consumeAsset.id, consumeAsset.id,
@ -87,7 +85,6 @@ class App extends Component {
await this.state.ocean.assets.consume( await this.state.ocean.assets.consume(
agreement, agreement,
consumeAsset.id, consumeAsset.id,
service.index,
accounts[0], accounts[0],
'', '',
0 0