From fdd406a37c52342e8a213df6b6f1c48cdd51e168 Mon Sep 17 00:00:00 2001 From: Linus Kendall Date: Fri, 1 Dec 2023 03:16:35 +0530 Subject: [PATCH] Update raw name and raw symbol for existing NFTs (#139) Update the raw name and raw symbol from the onchain data for existing NFTs when reingesting. This allows correction of incorrect values during reprocessing on an existing index. --- nft_ingester/src/program_transformers/bubblegum/mint_v1.rs | 2 ++ .../src/program_transformers/token_metadata/v1_asset.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/nft_ingester/src/program_transformers/bubblegum/mint_v1.rs b/nft_ingester/src/program_transformers/bubblegum/mint_v1.rs index 323c1e35c..752ed6a3c 100644 --- a/nft_ingester/src/program_transformers/bubblegum/mint_v1.rs +++ b/nft_ingester/src/program_transformers/bubblegum/mint_v1.rs @@ -110,6 +110,8 @@ where asset_data::Column::MetadataMutability, asset_data::Column::SlotUpdated, asset_data::Column::Reindex, + asset_data::Column::RawName, + asset_data::Column::RawSymbol, ]) .to_owned(), ) diff --git a/nft_ingester/src/program_transformers/token_metadata/v1_asset.rs b/nft_ingester/src/program_transformers/token_metadata/v1_asset.rs index 879581341..061a2ac9b 100644 --- a/nft_ingester/src/program_transformers/token_metadata/v1_asset.rs +++ b/nft_ingester/src/program_transformers/token_metadata/v1_asset.rs @@ -161,6 +161,8 @@ pub async fn save_v1_asset( asset_data::Column::MetadataMutability, asset_data::Column::SlotUpdated, asset_data::Column::Reindex, + asset_data::Column::RawName, + asset_data::Column::RawSymbol, ]) .to_owned(), )