Skip to content

reset

Resets the state of the builder.

Usage

import { AssetBuilder } from '@deltadao/nautilus'
 
const assetBuilder = new AssetBuilder()
 
assetBuilder.setName('Test') 
assetBuilder.setDescription('My description') 
assetBuilder.build() 
ddo.metadata:
{
name: 'Test',
description: 'My description'
}
assetBuilder.reset()
All asset data is reset and a new asset can be built with this instance.

Returns

  • void

No return value. The asset builder instance will be reset after this call.