update wrapped asset naming on Solana

Change-Id: I0dc2eb3e64d27ee50808dd549a292505bdb8e721
This commit is contained in:
Hendrik Hofstadt 2021-09-01 15:05:59 +02:00
parent b0c95b85a6
commit af67e71bfb
2 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,7 @@ FROM docker.io/library/rust:1.49@sha256:a50165ea96983c21832578afb1c8c028674c965b
RUN apt-get update && apt-get install -y libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang
RUN rustup component add rustfmt
RUN rustup default nightly
RUN rustup default nightly-2021-08-01
WORKDIR /usr/src/bridge

View File

@ -140,9 +140,10 @@ pub fn create_wrapped(
},
)?;
let mut name = String::from("Wormhole: ") + accs.vaa.name.as_str();
name.truncate(32);
let mut symbol = String::from("wh") + accs.vaa.symbol.as_str();
let mut name = accs.vaa.name.clone();
name.truncate(32 - 11);
name += " (Wormhole)";
let mut symbol = accs.vaa.symbol.clone();
symbol.truncate(10);
let spl_token_metadata_ix = spl_token_metadata::instruction::create_metadata_accounts(