1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

update DDO

This commit is contained in:
Matthias Kretschmann 2020-10-08 11:45:07 +02:00
parent ca938c9400
commit aa58431629
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -51,6 +51,12 @@ export class DDO {
public proof: Proof
public dtBalance: number
public OceanBalance: number
public dtPrice: number
public constructor(ddo: Partial<DDO> = {}) {
Object.assign(this, ddo, {
created: (ddo && ddo.created) || new Date().toISOString().replace(/\.[0-9]{3}/, '')