Skip to content

Commit

Permalink
fix: remove DEFAULT_NFT_FEATURE_ENTRY_KEY reference
Browse files Browse the repository at this point in the history
  • Loading branch information
cpl121 committed Mar 25, 2024
1 parent a00b851 commit a0fc825
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { EXTERNALLY_OWNED_ACCOUNT } from '@core/layer-2/constants'
import { parseLayer2MetadataForTransfer } from '@core/layer-2/utils'
import { containsControlCharacters, Converter } from '@core/utils'
import { CommonOutput, FeatureType, MetadataFeature, Output } from '@iota/sdk/out/types'
import { DEFAULT_NFT_FEATURE_ENTRY_KEY } from '@core/nfts'
import { DEFAULT_METADATA_FEATURE_ENTRY_KEY } from '../../../constants'

export function getMetadataFromOutput(output: Output): string | undefined {
const commonOutput = output as CommonOutput
Expand All @@ -13,7 +13,7 @@ export function getMetadataFromOutput(output: Output): string | undefined {

if (metadataFeature) {
// TODO: update this to return all entries, linked issue https://github.com/iotaledger/firefly/issues/8120
const data = metadataFeature?.entries?.[DEFAULT_NFT_FEATURE_ENTRY_KEY] ?? undefined
const data = metadataFeature?.entries?.[DEFAULT_METADATA_FEATURE_ENTRY_KEY] ?? undefined

if (data) {
const isVotingOutput = isParticipationOutput(output)
Expand Down

0 comments on commit a0fc825

Please sign in to comment.