1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00

fix(rust/trezor-client): fix Solana messages

This commit is contained in:
matejcik 2023-12-05 21:09:13 +01:00 committed by matejcik
parent 8d617f876a
commit 20400bc7b9
3 changed files with 12 additions and 6 deletions

View File

@ -25,6 +25,7 @@ FEATURES = {
"Monero": "monero",
"NEM": "nem",
"Ripple": "ripple",
"Solana": "solana",
"Stellar": "stellar",
"Tezos": "tezos",
"WebAuthn": "webauthn",

View File

@ -79,12 +79,6 @@ trezor_message_impl! {
DebugLinkEraseSdCard => MessageType_DebugLinkEraseSdCard,
DebugLinkWatchLayout => MessageType_DebugLinkWatchLayout,
DebugLinkResetDebugEvents => MessageType_DebugLinkResetDebugEvents,
SolanaGetPublicKey => MessageType_SolanaGetPublicKey,
SolanaPublicKey => MessageType_SolanaPublicKey,
SolanaGetAddress => MessageType_SolanaGetAddress,
SolanaAddress => MessageType_SolanaAddress,
SolanaSignTx => MessageType_SolanaSignTx,
SolanaTxSignature => MessageType_SolanaTxSignature,
}
#[cfg(feature = "binance")]
@ -244,6 +238,16 @@ trezor_message_impl! {
RippleSignedTx => MessageType_RippleSignedTx,
}
#[cfg(feature = "solana")]
trezor_message_impl! {
SolanaGetPublicKey => MessageType_SolanaGetPublicKey,
SolanaPublicKey => MessageType_SolanaPublicKey,
SolanaGetAddress => MessageType_SolanaGetAddress,
SolanaAddress => MessageType_SolanaAddress,
SolanaSignTx => MessageType_SolanaSignTx,
SolanaTxSignature => MessageType_SolanaTxSignature,
}
#[cfg(feature = "stellar")]
trezor_message_impl! {
StellarSignTx => MessageType_StellarSignTx,

View File

@ -32,6 +32,7 @@ mod generated {
"monero" => messages_monero
"nem" => messages_nem
"ripple" => messages_ripple
"solana" => messages_solana
"stellar" => messages_stellar
"tezos" => messages_tezos
"webauthn" => messages_webauthn