Updated on 2026-08-14

This commit is contained in:
Tangem 2018-08-31 12:16:29 +03:00
parent a77f7c6dd5
commit 06ae7fa813
2 changed files with 14 additions and 2 deletions

View file

@ -517,8 +517,21 @@ public class CardProtocol {
if (tokenSymbol != null)
mCard.setTokenSymbol(tokenSymbol.getAsString());
if (contractAddress != null)
// Hardcoded smart contracts for the cards manufactured before registration of smart-contract in ETH
if( mCard.getBatch().equals("0017") )
{
mCard.setContractAddress("contract for 0017");
}
else if( mCard.getBatch().equals("0019") )
{
mCard.setContractAddress("0x0c056b0cda0763cc14b8b2d6c02465c91e33ec72");
}
else if (contractAddress != null)
{
mCard.setContractAddress(contractAddress.getAsString());
}
if (tokens_decimal != null)
mCard.setTokensDecimal(tokens_decimal.getAsInt());