From a1b14f96cd17e8488b2ef3ae77d24cabb9285830 Mon Sep 17 00:00:00 2001 From: chyngyz Date: Mon, 29 Jan 2024 11:14:43 +0600 Subject: [PATCH] Fix Solana token balance sync - token auto enabling fixed - pending transaction syncer added --- app/build.gradle | 6 +++--- .../bankwallet/core/adapters/SplAdapter.kt | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 86d6edb4fc5..1fcda7a6f0b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -17,8 +17,8 @@ android { compileSdk compile_sdk_version minSdkVersion min_sdk_version targetSdkVersion compile_sdk_version - versionCode 96 - versionName "0.37.2" + versionCode 97 + versionName "0.37.3" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" kapt { @@ -278,7 +278,7 @@ dependencies { implementation 'com.github.horizontalsystems:blockchain-fee-rate-kit-android:1d3bd49' implementation 'com.github.horizontalsystems:binance-chain-kit-android:c1509a2' implementation 'com.github.horizontalsystems:market-kit-android:746d398' - implementation 'com.github.horizontalsystems:solana-kit-android:34ef394' + implementation 'com.github.horizontalsystems:solana-kit-android:6401968' implementation 'com.github.horizontalsystems:tron-kit-android:f2f7c9a' // Zcash SDK implementation "cash.z.ecc.android:zcash-android-sdk:2.0.1" diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/core/adapters/SplAdapter.kt b/app/src/main/java/io/horizontalsystems/bankwallet/core/adapters/SplAdapter.kt index 326275d7b72..3d4f7883a7f 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/core/adapters/SplAdapter.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/core/adapters/SplAdapter.kt @@ -21,6 +21,10 @@ class SplAdapter( private val mintAddress = Address(mintAddressString) + init { + solanaKit.addTokenAccount(mintAddressString, wallet.decimal) + } + // IAdapter override fun start() {