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",
"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",

View File

@ -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