Updated on 2026-08-14
This commit is contained in:
commit
fce1cfd12b
7 changed files with 16 additions and 3 deletions
|
|
@ -71,9 +71,9 @@ dependencies {
|
|||
implementation 'com.google.android.material:material:1.2.1'
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.1'
|
||||
|
||||
implementation 'com.tangem:blockchain:1.130.0'
|
||||
implementation 'com.tangem:core:1.99.0'
|
||||
implementation 'com.tangem:sdk:1.99.0'
|
||||
implementation 'com.tangem:blockchain:1.140.0'
|
||||
implementation 'com.tangem:core:1.100.0'
|
||||
implementation 'com.tangem:sdk:1.100.0'
|
||||
|
||||
// WebView
|
||||
implementation "androidx.browser:browser:1.3.0"
|
||||
|
|
|
|||
|
|
@ -38,6 +38,10 @@ sealed class TapError(
|
|||
object DustChange : TapError(R.string.send_error_dust_change)
|
||||
data class CreateAccountUnderfunded(override val args: List<Any>) : TapError(R.string.send_error_no_target_account)
|
||||
|
||||
sealed class XmlError {
|
||||
object AssetAccountNotCreated: TapError(R.string.send_error_no_account_xlm)
|
||||
}
|
||||
|
||||
data class ValidateTransactionErrors(
|
||||
override val errorList: List<TapError>,
|
||||
override val builder: (List<String>) -> String
|
||||
|
|
|
|||
|
|
@ -140,6 +140,11 @@ private fun sendTransaction(
|
|||
message.contains("50002") -> {
|
||||
// user was cancelled the operation by closing the Sdk bottom sheet
|
||||
}
|
||||
// make it easier latter by handling an appropriate enumError or, like on iOS,
|
||||
// accept a string identifier of the error message
|
||||
message.contains("Target account is not created. To create account send 1+ XLM.")-> {
|
||||
dispatch(SendAction.SendError(TapError.XmlError.AssetAccountNotCreated))
|
||||
}
|
||||
else -> {
|
||||
Timber.e(throwable)
|
||||
FirebaseCrashlytics.getInstance().recordException(throwable)
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@
|
|||
<string name="send_total_subtitle_asset_format">%s %s und %s %s werden gesendet</string>
|
||||
<string name="send_balance_subtitle_format">Bilanz: %s %s</string>
|
||||
<string name="send_transaction_success">Die Transaktion wurde erfolgreich signiert und an den Blockchain-Knoten gesendet. Die Walletbilanz wird aktualisiert</string>
|
||||
<string name="send_error_no_account_xlm">Um ein Konto zu erstellen, senden Sie 1+ XLM an diese Adresse</string>
|
||||
<string name="details_title">Details</string>
|
||||
<string name="details_row_title_cid">KartenID</string>
|
||||
<string name="details_row_title_issuer">Emittent</string>
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@
|
|||
<string name="send_total_subtitle_asset_format">Sera envoyé %s %s et %s %s</string>
|
||||
<string name="send_balance_subtitle_format">Solde : %s %s</string>
|
||||
<string name="send_transaction_success">La transaction a été signée avec succès et envoyée au nœud de blockchain. Le solde du portefeuille sera mis à jour après un certain temps </string>
|
||||
<string name="send_error_no_account_xlm">Pour créer un compte, envoyez 1+ XLM à cette adresse</string>
|
||||
<string name="details_title">Référénces </string>
|
||||
<string name="details_row_title_cid">ID de la carte </string>
|
||||
<string name="details_row_title_issuer">Emetteur </string>
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@
|
|||
<string name="send_total_subtitle_asset_format">Sarà inviato %1$s %2$s e %1$s %2$s</string>
|
||||
<string name="send_balance_subtitle_format">Saldo: %1$s %2$s</string>
|
||||
<string name="send_transaction_success">La transazione è stata firmata con successo e inviata al nodo blockchain. Il saldo del portafoglio verrà aggiornato dopo un po\' di tempo </string>
|
||||
<string name="send_error_no_account_xlm">Per creare un account, invia 1+ XLM a questo indirizzo</string>
|
||||
<string name="details_title">Requisiti</string>
|
||||
<string name="details_row_title_cid">ID carta</string>
|
||||
<string name="details_row_title_issuer">Emittente</string>
|
||||
|
|
|
|||
|
|
@ -188,6 +188,7 @@
|
|||
<string name="send_error_invalid_fee_value">Invalid Fee</string>
|
||||
<string name="send_error_dust_amount_format">Minimum amount is %s</string>
|
||||
<string name="send_error_dust_change">Change is too small</string>
|
||||
<string name="send_error_no_account_xlm">To create account send 1+ XLM to this address</string>
|
||||
|
||||
<string name="wallet_notification_address_copied">Address was copied to clipboard</string>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue