Skip to content

Commit

Permalink
remove trims (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
linuskendall authored Sep 19, 2023
1 parent baba78b commit 16e898b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions digital_asset_types/src/json/chain_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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', "");
}
}
2 changes: 1 addition & 1 deletion nft_ingester/src/program_transformers/bubblegum/mint_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 16e898b

Please sign in to comment.