setLicense
Set the license for the asset.
Usage
import { , } from '@deltadao/nautilus'
import { } from 'ethers'
const = await .(new ('0x1234'))
const = new ()
.('Apache-2.0')
const = .()
await .()
ddo.metadata: { license: { name: 'Apache-2.0' }}Returns
- Type:
AssetBuilder
The asset builder instance, to chain further calls with.
Parameters
license
- Type:
string | License
A public-domain declaration, an SPDX identifier, a URL, or a
full License object for ODRL terms.
.(
'https://link.to/my/custom-license'
)