From 9fbf4f34bcd0bb81b39cf8888b5c249074292c8d Mon Sep 17 00:00:00 2001 From: daiagi Date: Wed, 25 Oct 2023 09:16:35 +0700 Subject: [PATCH] don't save roaylty to attributes --- src/mappings/nfts/setAttribute.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mappings/nfts/setAttribute.ts b/src/mappings/nfts/setAttribute.ts index 0eb969b..cd6e0d0 100644 --- a/src/mappings/nfts/setAttribute.ts +++ b/src/mappings/nfts/setAttribute.ts @@ -30,7 +30,7 @@ export async function handleAttributeSet(context: Context): Promise { 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) }