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",
|
"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",
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user