Conditionnaly comment Starkware some missing logic for altcoins

This commit is contained in:
TamtamHero
2020-11-30 18:45:54 +01:00
parent 2391036407
commit b6731d030b
2 changed files with 4 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ bool check_token_binding(char* ticker1, char* ticker2, const ticker_binding_t* b
}
bool erc20_plugin_available_check() {
#ifdef HAVE_STARKWARE
if (quantumSet) {
switch(dataContext.tokenContext.quantumType) {
case STARK_QUANTUM_LEGACY:
@@ -67,6 +68,7 @@ bool erc20_plugin_available_check() {
return false;
}
}
#endif
return true;
}

View File

@@ -17,6 +17,7 @@ typedef struct erc721_parameters_t {
} erc721_parameters_t;
bool erc721_plugin_available_check() {
#ifdef HAVE_STARKWARE
if (quantumSet) {
switch(dataContext.tokenContext.quantumType) {
case STARK_QUANTUM_ERC721:
@@ -27,6 +28,7 @@ bool erc721_plugin_available_check() {
}
}
return false;
#endif
}
void erc721_plugin_call(int message, void *parameters) {