Updated on 2026-08-14
This commit is contained in:
parent
0f2b616f73
commit
c995e6cfe7
2 changed files with 6 additions and 1 deletions
|
|
@ -356,7 +356,7 @@ public class XrpEngine extends CoinEngine {
|
|||
Long.valueOf(amount).compareTo(coinData.getReserveInInternalUnits().longValue()) < 0
|
||||
) {
|
||||
String reserveDescription = convertToAmount(coinData.getReserveInInternalUnits()).toDescriptionString(getDecimals());
|
||||
throw new Exception("Target account is not created. Amount should be " + reserveDescription + " or more");
|
||||
throw new IllegalArgumentException("Target account is not created. Send " + reserveDescription + " or more to create");
|
||||
}
|
||||
|
||||
XrpPayment payment = new XrpPayment();
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ import com.tangem.wallet.TangemContext
|
|||
import kotlinx.android.synthetic.main.layout_progress_horizontal.*
|
||||
import kotlinx.android.synthetic.main.layout_touch_card.*
|
||||
import kotlinx.android.synthetic.tangemAccess.fragment_sign_transaction.*
|
||||
import java.lang.IllegalArgumentException
|
||||
|
||||
|
||||
class SignTransactionFragment : BaseFragment(), NavigationResultListener,
|
||||
|
|
@ -148,6 +149,10 @@ class SignTransactionFragment : BaseFragment(), NavigationResultListener,
|
|||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
} catch(e: IllegalArgumentException) {
|
||||
val data = Bundle()
|
||||
data.putString(Constant.EXTRA_MESSAGE, e.message)
|
||||
navigateBackWithResult(Activity.RESULT_CANCELED, data, R.id.loadedWalletFragment)
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue