adding id4good
This commit is contained in:
committed by
Alexandre Paillier
parent
5cf1e1e8e2
commit
795140015d
@@ -72,7 +72,8 @@ typedef enum chain_kind_e {
|
||||
CHAIN_KIND_METER,
|
||||
CHAIN_KIND_MULTIVAC,
|
||||
CHAIN_KIND_TECRA,
|
||||
CHAIN_KIND_APOTHEMNETWORK
|
||||
CHAIN_KIND_APOTHEMNETWORK,
|
||||
CHAIN_KIND_ID4GOOD
|
||||
} chain_kind_t;
|
||||
|
||||
typedef struct chain_config_s {
|
||||
|
||||
@@ -294,6 +294,9 @@ extraInfo_t *getKnownToken(uint8_t *contractAddress) {
|
||||
case CHAIN_KIND_APOTHEMNETWORK:
|
||||
numTokens = NUM_TOKENS_APOTHEMNETWORK;
|
||||
break;
|
||||
case CHAIN_KIND_ID4GOOD:
|
||||
numTokens = NUM_TOKENS_ID4GOOD;
|
||||
break;
|
||||
}
|
||||
for (i = 0; i < numTokens; i++) {
|
||||
switch (chainConfig->kind) {
|
||||
@@ -447,6 +450,9 @@ extraInfo_t *getKnownToken(uint8_t *contractAddress) {
|
||||
case CHAIN_KIND_APOTHEMNETWORK:
|
||||
currentToken = (tokenDefinition_t *) PIC(&TOKENS_APOTHEMNETWORK[i]);
|
||||
break;
|
||||
case CHAIN_KIND_ID4GOOD:
|
||||
currentToken = (tokenDefinition_t *) PIC(&TOKENS_ID4GOOD[i]);
|
||||
break;
|
||||
}
|
||||
if (memcmp(currentToken->address, tmpContent.txContent.destination, ADDRESS_LENGTH) == 0) {
|
||||
return currentToken;
|
||||
|
||||
Reference in New Issue
Block a user