Skip to content

Commit 3a0f36b

Browse files
committed
less strict isUpdateable check
1 parent 42697f0 commit 3a0f36b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Indexer/processor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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}`

0 commit comments

Comments
 (0)