Updated on 2026-08-14

This commit is contained in:
Tangem 2020-07-27 17:38:36 +03:00
parent c63b0f47dc
commit 1d05681eb8

View file

@ -9,7 +9,6 @@ import com.tangem.App;
import com.tangem.Constant;
import com.tangem.data.local.PendingTransactionsStorage;
import com.tangem.data.network.ServerApiAdalite;
import com.tangem.data.network.ServerApiBlockcypher;
import com.tangem.data.network.ServerApiPayId;
import com.tangem.data.network.model.AdaliteResponse;
import com.tangem.data.network.model.AdaliteResponseUtxo;
@ -821,15 +820,8 @@ public class CardanoEngine extends CoinEngine {
@Override
public void onSuccess(String method, String stringResponse) {
if (method.equals(ServerApiAdalite.ADALITE_SEND)) {
if (stringResponse.equals("\"Transaction sent successfully!\"")) {
ctx.setError(null);
blockchainRequestsCallbacks.onComplete(true);
} else { // TODO: Make check for a valid send response
ctx.setError(stringResponse);
blockchainRequestsCallbacks.onComplete(false);
}
}
ctx.setError(null);
blockchainRequestsCallbacks.onComplete(true);
}