diff --git a/digital_asset_types/src/json/chain_data.rs b/digital_asset_types/src/json/chain_data.rs index 64be1098a..aebbb7383 100644 --- a/digital_asset_types/src/json/chain_data.rs +++ b/digital_asset_types/src/json/chain_data.rs @@ -20,7 +20,7 @@ pub struct ChainDataV1 { impl ChainDataV1 { pub fn sanitize(&mut self) { - self.name = self.name.trim().replace("\0", "").to_string(); - self.symbol = self.symbol.trim().replace("\0", "").to_string(); + self.name = self.name.replace('\0', ""); + self.symbol = self.symbol.replace('\0', ""); } } diff --git a/nft_ingester/src/program_transformers/bubblegum/mint_v1.rs b/nft_ingester/src/program_transformers/bubblegum/mint_v1.rs index fc1b5f8ec..0cb3b1f1a 100644 --- a/nft_ingester/src/program_transformers/bubblegum/mint_v1.rs +++ b/nft_ingester/src/program_transformers/bubblegum/mint_v1.rs @@ -61,7 +61,7 @@ where let (edition_attachment_address, _) = find_master_edition_account(&id); let id_bytes = id.to_bytes(); let slot_i = bundle.slot as i64; - let uri = metadata.uri.trim().replace('\0', ""); + let uri = metadata.uri.replace('\0', ""); let name = metadata.name.clone().into_bytes(); let symbol = metadata.symbol.clone().into_bytes(); let mut chain_data = ChainDataV1 {