Skip to content

Commit

Permalink
don't save roaylty to attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
daiagi committed Oct 25, 2023
1 parent 4b09245 commit 9fbf4f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mappings/nfts/setAttribute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function handleAttributeSet(context: Context): Promise<void> {
const attribute = final.attributes?.find((attr) => attr.trait === event.trait)
if (attribute) {
attribute.value = String(event.value)
} else {
} else if (event.trait !== 'royalty' && event.trait !== 'recipient') {
const newAttribute = attributeFrom({ trait_type: event.trait, value: String(event.value) })
final.attributes?.push(newAttribute)
}
Expand Down

0 comments on commit 9fbf4f3

Please sign in to comment.