Skip to content

Commit

Permalink
remove trims
Browse files Browse the repository at this point in the history
  • Loading branch information
linuskendall committed Jul 25, 2023
1 parent 838a706 commit c5eeefa
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 @@ -59,7 +59,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 mut chain_data = ChainDataV1 {
name: metadata.name.clone(),
symbol: metadata.symbol.clone(),
Expand Down

0 comments on commit c5eeefa

Please sign in to comment.