1
0
mirror of https://github.com/oceanprotocol/react.git synced 2025-02-14 21:10:38 +01:00

lib update

This commit is contained in:
mihaisc 2020-09-29 16:10:51 +03:00
parent 8943aa0639
commit 9cf210ff60
No known key found for this signature in database
GPG Key ID: BE522BB8C3A5E2E4
3 changed files with 294 additions and 11237 deletions

11510
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@
"dist/"
],
"dependencies": {
"@oceanprotocol/lib": "file:../ocean-lib-js",
"@oceanprotocol/lib": "^0.3.2",
"axios": "^0.20.0",
"decimal.js": "^10.2.0",
"web3": "^1.3.0",

View File

@ -170,15 +170,16 @@ function usePublish(): UsePublish {
Logger.log('services created', services)
const ddo = await ocean.assets.create(
asset,
account,
services,
dataTokenOptions?.cap,
dataTokenOptions?.name,
dataTokenOptions?.symbol
)
// .next(setStep)
const ddo = await ocean.assets
.create(
asset,
account,
services,
dataTokenOptions?.cap,
dataTokenOptions?.name,
dataTokenOptions?.symbol
)
.next(setStep)
Logger.log('ddo created', ddo)
setStep(7)
await mint(ddo.dataToken, tokensToMint)