Edit DDO Fields
export interface UpdateFields {
id?: string;
nftAddress?: string;
chainId?: number;
datatokens?: AssetDatatoken[];
indexedMetadata?: IndexedMetadata;
services?: ServiceV4[] | ServiceV5[];
issuer?: string;
proof?: Proof;
}Usage of Update Fields Function
const { DDOManager } = require ('@oceanprotocol/ddo-js');
const ddoInstance = DDOManager.getDDOClass(DDOExampleV4);
const nftAddressToUpdate = "0xfF4AE9869Cafb5Ff725f962F3Bbc22Fb303A8aD8"
ddoInstance.updateFields({ nftAddress: nftAddressToUpdate }) // It supports update on multiple fields
// The same script can be applied on DDO V5 and deprecated DDO from `Instantiate DDO section`.Last updated
Was this helpful?

