Skip to content

Commit

Permalink
Fix unit tests compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger authored and yogh333 committed Dec 16, 2024
1 parent 5f4d515 commit 1ee63ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libsol/spl_token_instruction.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/handle_provide_trusted_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -838,4 +838,4 @@ void handle_provide_trusted_info(void) {
THROW(ApduReplySuccess);
}
THROW(ApduReplySolanaInvalidTrustedInfo);
}
}

0 comments on commit 1ee63ae

Please sign in to comment.