Removed the helper getNftContractAddress helper function and some NULL checks
Useless since we don't allow NFT signing without the NFT metadata anymore
This commit is contained in:
@@ -237,12 +237,6 @@ void getEthDisplayableAddress(uint8_t *in,
|
||||
getEthAddressStringFromBinary(in, out + 2, sha3, chainId);
|
||||
}
|
||||
|
||||
uint8_t *getNftContractAddress(const ethQueryContractUI_t *const msg) {
|
||||
// In case of no PROVIDE_NFT_INFO, we already have the address from the SET_PLUGIN
|
||||
return ((msg->item1) ? ((uint8_t *) msg->item1->nft.contractAddress)
|
||||
: msg->pluginSharedRO->txContent->destination);
|
||||
}
|
||||
|
||||
bool adjustDecimals(const char *src,
|
||||
size_t srcLength,
|
||||
char *target,
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
|
||||
#include "cx.h"
|
||||
#include "chainConfig.h"
|
||||
#include "eth_plugin_interface.h"
|
||||
|
||||
/**
|
||||
* @brief Decode an RLP encoded field - see
|
||||
@@ -59,8 +58,6 @@ void getEthDisplayableAddress(uint8_t *in,
|
||||
cx_sha3_t *sha3,
|
||||
uint64_t chainId);
|
||||
|
||||
uint8_t *getNftContractAddress(const ethQueryContractUI_t *const msg);
|
||||
|
||||
bool adjustDecimals(const char *src,
|
||||
size_t srcLength,
|
||||
char *target,
|
||||
|
||||
Reference in New Issue
Block a user