Updated on 2026-08-14

This commit is contained in:
Tangem 2019-06-10 16:38:31 +03:00
parent 7fa19e7bb2
commit ba0b69b263
2 changed files with 7 additions and 1 deletions

View file

@ -3,6 +3,7 @@ package com.tangem.wallet.matic;
import android.net.Uri;
import android.util.Log;
import com.tangem.card_common.tasks.SignTask;
import com.tangem.data.Blockchain;
import com.tangem.data.network.ServerApiMatic;
import com.tangem.data.network.model.InfuraResponse;
@ -89,6 +90,11 @@ public class MaticTokenEngine extends TokenEngine {
return true;
}
@Override
public SignTask.TransactionToSign constructTransaction(Amount amountValue, Amount feeValue, boolean IncFee, String targetAddress) throws Exception {
return constructTransactionToken(feeValue, amountValue, IncFee, targetAddress);
}
@Override
public void requestBalanceAndUnspentTransactions(BlockchainRequestsCallbacks blockchainRequestsCallbacks) {
final ServerApiMatic serverApiMatic = new ServerApiMatic();

View file

@ -527,7 +527,7 @@ public class TokenEngine extends CoinEngine {
};
}
private SignTask.TransactionToSign constructTransactionToken(Amount feeValue, Amount amountValue, boolean IncFee, String targetAddress) throws Exception {
protected SignTask.TransactionToSign constructTransactionToken(Amount feeValue, Amount amountValue, boolean IncFee, String targetAddress) throws Exception {
Log.e(TAG, "Construct TOKEN transaction " + amountValue.toString() + " with fee " + feeValue.toString() + (IncFee ? " including" : " excluding"));
BigInteger nonceValue = coinData.getConfirmedTXCount();