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:
parent
0e9de2404b
commit
0790ba6465
@ -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",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user