solana/token_bridge: fix incorrect byte iterator
Change-Id: I4bcb3217c34fda24463886aa35de691238f8bdc4
This commit is contained in:
parent
2beaada181
commit
c116b3c813
|
@ -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}');
|
||||
|
|
Loading…
Reference in New Issue