Add Shyft support
This commit is contained in:
committed by
Lucas PASCAL
parent
24f4ecd671
commit
c8bf437424
@@ -266,6 +266,9 @@ tokenDefinition_t *getKnownToken(uint8_t *contractAddress) {
|
||||
case CHAIN_KIND_POLYGON:
|
||||
numTokens = NUM_TOKENS_POLYGON;
|
||||
break;
|
||||
case CHAIN_KIND_SHYFT:
|
||||
numTokens = NUM_TOKENS_SHYFT;
|
||||
break;
|
||||
}
|
||||
for (i = 0; i < numTokens; i++) {
|
||||
switch (chainConfig->kind) {
|
||||
@@ -374,6 +377,9 @@ tokenDefinition_t *getKnownToken(uint8_t *contractAddress) {
|
||||
case CHAIN_KIND_POLYGON:
|
||||
currentToken = (tokenDefinition_t *) PIC(&TOKENS_POLYGON[i]);
|
||||
break;
|
||||
case CHAIN_KIND_SHYFT:
|
||||
currentToken = (tokenDefinition_t *) PIC(&TOKENS_SHYFT[i]);
|
||||
break;
|
||||
}
|
||||
if (memcmp(currentToken->address, tmpContent.txContent.destination, ADDRESS_LENGTH) == 0) {
|
||||
return currentToken;
|
||||
|
||||
Reference in New Issue
Block a user