Skip to content

Commit

Permalink
solana/token_bridge: fix incorrect byte iterator
Browse files Browse the repository at this point in the history
Change-Id: I4bcb3217c34fda24463886aa35de691238f8bdc4
  • Loading branch information
Reisen committed Sep 13, 2021
1 parent 2beaada commit c116b3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ pub fn create_wrapped(
let mut name: String = name.iter().collect();
name += " (Wormhole)";

let mut symbol = accs.vaa.symbol.clone();
let mut symbol = accs.vaa.symbol.clone().as_bytes().to_vec();
symbol.truncate(10);
let mut symbol: Vec<char> = symbol.chars().collect();
symbol.retain(|&c| c != '\u{FFFD}');
Expand Down

0 comments on commit c116b3c

Please sign in to comment.