solana/token-bridge: add original_decimal tracking
Change-Id: I0989e2f75e7f4d2b0cf2c2e9fb35c26d288a902b
This commit is contained in:
parent
33bf0b0c82
commit
3714624fb0
|
@ -166,6 +166,7 @@ pub fn create_wrapped(
|
|||
// Populate meta account
|
||||
accs.meta.chain = accs.vaa.token_chain;
|
||||
accs.meta.token_address = accs.vaa.token_address;
|
||||
accs.meta.original_decimals = accs.vaa.decimals;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -50,6 +50,7 @@ impl Owned for EndpointRegistration {
|
|||
pub struct WrappedMeta {
|
||||
pub chain: ChainID,
|
||||
pub token_address: Address,
|
||||
pub original_decimals: u8,
|
||||
}
|
||||
|
||||
impl Owned for WrappedMeta {
|
||||
|
|
Loading…
Reference in New Issue