Renamed get_asset_info to get_asset_info_by_addr

This commit is contained in:
Alexandre Paillier
2024-05-07 14:27:00 +02:00
parent 27f9ad52a8
commit c8c4b6cccc
4 changed files with 5 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ void reset_known_tokens(void) {
memset(tmpCtx.transactionContext.tokenSet, 0, MAX_ITEMS);
}
extraInfo_t *get_asset_info(const uint8_t *contractAddress) {
extraInfo_t *get_asset_info_by_addr(const uint8_t *contractAddress) {
// Works for ERC-20 & NFT tokens since both structs in the union have the
// contract address aligned
for (uint8_t i = 0; i < MAX_ITEMS; i++) {

View File

@@ -3,5 +3,4 @@
#include "asset_info.h"
void reset_known_tokens(void);
extraInfo_t *get_asset_info(const uint8_t *contractAddress);
extraInfo_t *get_asset_info_by_addr(const uint8_t *contractAddress);