1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

add custom identifier

This commit is contained in:
mihaisc 2022-11-15 15:32:46 +02:00
parent 8225775828
commit a85f528568
2 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,7 @@ export function generateBaseQuery(
? getFilterTerm('chainId', baseQueryParams.chainIds)
: '',
getFilterTerm('_index', 'aquarius'),
getFilterTerm('customIdentifier.keyword', 'myCustomIdentifier'),
...(baseQueryParams.ignorePurgatory
? ''
: [getFilterTerm('purgatory.state', false)]),

View File

@ -133,6 +133,9 @@ export default function PublishPage({
erc721Address
)
// add custom identifier
Object.assign(ddo, { customIdentifier: 'myCustomIdentifier' })
if (!ddo) throw new Error('No DDO received. Please try again.')
setDdo(ddo)