File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -712,14 +712,14 @@ export class MetadataEventProcessor extends BaseEventProcessor {
712712 block : number
713713 ) : [ boolean , string ] {
714714 let errorMsg : string
715- const ddoTxId = previousDdo . getAssetFields ( ) . indexedMetadata . event . txid
715+ const ddoTxId = previousDdo . getDDOData ( ) . indexedMetadata ? .event ?. tx
716716 // do not update if we have the same txid
717717 if ( txHash === ddoTxId ) {
718718 errorMsg = `Previous DDO has the same tx id, no need to update: event-txid=${ txHash } <> asset-event-txid=${ ddoTxId } `
719719 INDEXER_LOGGER . log ( LOG_LEVELS_STR . LEVEL_DEBUG , errorMsg , true )
720720 return [ false , errorMsg ]
721721 }
722- const ddoBlock = previousDdo . getAssetFields ( ) . indexedMetadata . event . block
722+ const ddoBlock = previousDdo . getDDOData ( ) . indexedMetadata ? .event ? .block
723723 // do not update if we have the same block
724724 if ( block === ddoBlock ) {
725725 errorMsg = `Asset was updated later (block: ${ ddoBlock } ) vs transaction block: ${ block } `
You can’t perform that action at this time.
0 commit comments