Updated on 2026-08-14
This commit is contained in:
parent
6e4d1f0079
commit
ef0a5f379d
6 changed files with 338 additions and 108 deletions
|
|
@ -3,7 +3,6 @@ package com.tangem.domain.wallet;
|
|||
import android.net.Uri;
|
||||
import android.text.InputFilter;
|
||||
|
||||
import com.tangem.data.Blockchain;
|
||||
import com.tangem.tangemcard.reader.CardProtocol;
|
||||
import com.tangem.tangemcard.tasks.SignTask;
|
||||
|
||||
|
|
@ -236,12 +235,7 @@ public abstract class CoinEngine {
|
|||
|
||||
public void defineWallet() throws CardProtocol.TangemException {
|
||||
try {
|
||||
String wallet;
|
||||
if (ctx.getBlockchain() == Blockchain.BitcoinCash) {
|
||||
wallet = calculateAddress(ctx.getCard().getWalletPublicKeyRar());
|
||||
} else {
|
||||
wallet = calculateAddress(ctx.getCard().getWalletPublicKey());
|
||||
}
|
||||
String wallet = calculateAddress(ctx.getCard().getWalletPublicKey());
|
||||
ctx.getCoinData().setWallet(wallet);
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
@ -270,4 +264,12 @@ public abstract class CoinEngine {
|
|||
onNeedSendPayment.onPaymentPrepared(txForSend);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public interface BlockchainRequestsNotifications
|
||||
{
|
||||
void onComplete(Boolean success);
|
||||
boolean needTerminate();
|
||||
}
|
||||
public abstract void requestBalanceAndUnspentTransactions(BlockchainRequestsNotifications blockchainRequestsNotifications);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue