Skip to content

Commit 27b9d13

Browse files
committed
Fix proposal validation for WalletConnect
1 parent 80f512d commit 27b9d13

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ android {
1919
compileSdk compile_sdk_version
2020
minSdkVersion min_sdk_version
2121
targetSdkVersion compile_sdk_version
22-
versionCode 114
23-
versionName "0.39.4"
22+
versionCode 115
23+
versionName "0.39.5"
2424
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2525

2626
ksp {

app/src/main/java/io/horizontalsystems/bankwallet/core/App.kt

+1-12
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ import io.horizontalsystems.core.CoreApp
112112
import io.horizontalsystems.core.ICoreApp
113113
import io.horizontalsystems.core.security.EncryptionManager
114114
import io.horizontalsystems.core.security.KeyStoreManager
115-
import io.horizontalsystems.core.toHexString
116115
import io.horizontalsystems.ethereumkit.core.EthereumKit
117116
import io.horizontalsystems.hdwalletkit.Mnemonic
118117
import io.reactivex.plugins.RxJavaPlugins
@@ -518,17 +517,7 @@ class App : CoreApp(), WorkConfiguration.Provider, ImageLoaderFactory {
518517
localeAwareContext(this)
519518
}
520519

521-
override val isSwapEnabled: Boolean by lazy {
522-
val signatures = listOf(
523-
"b797339fb356afce5160fe49274ee17a1c1816db", // appcenter
524-
"5afb2517b06caac7f108ba9d96ad826f1c4ba30c", // hs
525-
)
526-
527-
val applicationSignatures = App.instance.getApplicationSignatures()
528-
applicationSignatures.none {
529-
signatures.contains(it.toHexString())
530-
}
531-
}
520+
override val isSwapEnabled = true
532521

533522
override fun getApplicationSignatures() = try {
534523
val signatureList = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {

app/src/main/java/io/horizontalsystems/bankwallet/modules/walletconnect/session/WCSessionViewModel.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class WCSessionViewModel(
6969
"wallet_switchEthereumChain"
7070
)
7171

72-
private val supportedEvents = listOf("chainChanged", "accountsChanged" /*"connect", "disconnect", "message"*/)
72+
private val supportedEvents = listOf("chainChanged", "accountsChanged", "connect", "disconnect", "message")
7373

7474
override fun createState() = WCSessionUiState(
7575
peerMeta = peerMeta,

0 commit comments

Comments
 (0)