From 1ee63aea6c9c711f4c16abf91ddc575806f705eb Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Tue, 10 Dec 2024 14:53:13 +0100 Subject: [PATCH] Fix unit tests compilation --- libsol/spl_token_instruction.c | 4 ++-- src/handle_provide_trusted_info.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libsol/spl_token_instruction.c b/libsol/spl_token_instruction.c index 1860df14..e8bd694e 100644 --- a/libsol/spl_token_instruction.c +++ b/libsol/spl_token_instruction.c @@ -484,8 +484,8 @@ static int print_spl_token_initialize_multisig_info(const char* primary_title, return 0; } -extern uint8_t g_trusted_token_account_owner_pubkey[BASE58_PUBKEY_LENGTH]; -extern bool g_trusted_token_account_owner_pubkey_set; +uint8_t g_trusted_token_account_owner_pubkey[BASE58_PUBKEY_LENGTH]; +bool g_trusted_token_account_owner_pubkey_set; int print_spl_token_transfer_info(const SplTokenTransferInfo* info, const PrintConfig* print_config, diff --git a/src/handle_provide_trusted_info.c b/src/handle_provide_trusted_info.c index 2d5af3b8..32d1229c 100644 --- a/src/handle_provide_trusted_info.c +++ b/src/handle_provide_trusted_info.c @@ -153,8 +153,8 @@ typedef struct { static s_tlv_payload g_tlv_payload = {0}; static s_trusted_name_info g_trusted_name_info = {0}; -uint8_t g_trusted_token_account_owner_pubkey[MAX_ADDRESS_LENGTH + 1] = {0}; -bool g_trusted_token_account_owner_pubkey_set = false; +extern uint8_t g_trusted_token_account_owner_pubkey[MAX_ADDRESS_LENGTH + 1]; +extern bool g_trusted_token_account_owner_pubkey_set; /** * Get uint from tlv data @@ -838,4 +838,4 @@ void handle_provide_trusted_info(void) { THROW(ApduReplySuccess); } THROW(ApduReplySolanaInvalidTrustedInfo); -} \ No newline at end of file +}