Updated on 2026-08-14
This commit is contained in:
parent
e1984e63aa
commit
4a27600ede
7 changed files with 397 additions and 101 deletions
|
|
@ -3,6 +3,7 @@ package com.tangem.domain.wallet;
|
|||
import android.net.Uri;
|
||||
import android.text.InputFilter;
|
||||
|
||||
import com.tangem.tangemcard.data.Blockchain;
|
||||
import com.tangem.tangemcard.reader.CardProtocol;
|
||||
import com.tangem.tangemcard.tasks.SignTask;
|
||||
|
||||
|
|
@ -237,7 +238,12 @@ public abstract class CoinEngine {
|
|||
|
||||
public void defineWallet() throws CardProtocol.TangemException {
|
||||
try {
|
||||
String wallet = calculateAddress(ctx.getCard().getWalletPublicKey());
|
||||
String wallet;
|
||||
if (ctx.getBlockchain() == Blockchain.BitcoinCash) {
|
||||
wallet = calculateAddress(ctx.getCard().getWalletPublicKeyRar());
|
||||
} else {
|
||||
wallet = calculateAddress(ctx.getCard().getWalletPublicKey());
|
||||
}
|
||||
ctx.getCoinData().setWallet(wallet);
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue