mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fix ddo
This commit is contained in:
parent
cf2072ecab
commit
696856eb0d
@ -41,7 +41,7 @@ export class DDO {
|
||||
|
||||
public updated: string
|
||||
|
||||
public dtAddress: string
|
||||
public dataToken: string
|
||||
|
||||
public publicKey: PublicKey[] = []
|
||||
|
||||
|
@ -8,6 +8,7 @@ import DID from './DID'
|
||||
import { SubscribablePromise } from '../utils'
|
||||
import { Instantiable, InstantiableConfig } from '../Instantiable.abstract'
|
||||
import { WebServiceConnector } from './utils/WebServiceConnector'
|
||||
import { ECANCELED } from 'constants'
|
||||
|
||||
export enum CreateProgressStep {
|
||||
CreatingDataToken,
|
||||
@ -99,7 +100,7 @@ export class Assets extends Instantiable {
|
||||
// create ddo itself
|
||||
const ddo: DDO = new DDO({
|
||||
id: did.getDid(),
|
||||
dtAddress: dtAddress,
|
||||
dataToken: dtAddress,
|
||||
authentication: [
|
||||
{
|
||||
type: 'RsaSignatureAuthentication2018',
|
||||
@ -151,7 +152,6 @@ export class Assets extends Instantiable {
|
||||
index: indexCount++
|
||||
})) as Service[]
|
||||
})
|
||||
|
||||
this.logger.log('Generating proof')
|
||||
observer.next(CreateProgressStep.GeneratingProof)
|
||||
await ddo.addProof(this.ocean, publisher.getId(), publisher.getPassword())
|
||||
|
Loading…
x
Reference in New Issue
Block a user