Skip to content

Commit

Permalink
Fix proposal validation for WalletConnect
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol committed Sep 20, 2024
1 parent 80f512d commit 27b9d13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ android {
compileSdk compile_sdk_version
minSdkVersion min_sdk_version
targetSdkVersion compile_sdk_version
versionCode 114
versionName "0.39.4"
versionCode 115
versionName "0.39.5"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

ksp {
Expand Down
13 changes: 1 addition & 12 deletions app/src/main/java/io/horizontalsystems/bankwallet/core/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ import io.horizontalsystems.core.CoreApp
import io.horizontalsystems.core.ICoreApp
import io.horizontalsystems.core.security.EncryptionManager
import io.horizontalsystems.core.security.KeyStoreManager
import io.horizontalsystems.core.toHexString
import io.horizontalsystems.ethereumkit.core.EthereumKit
import io.horizontalsystems.hdwalletkit.Mnemonic
import io.reactivex.plugins.RxJavaPlugins
Expand Down Expand Up @@ -518,17 +517,7 @@ class App : CoreApp(), WorkConfiguration.Provider, ImageLoaderFactory {
localeAwareContext(this)
}

override val isSwapEnabled: Boolean by lazy {
val signatures = listOf(
"b797339fb356afce5160fe49274ee17a1c1816db", // appcenter
"5afb2517b06caac7f108ba9d96ad826f1c4ba30c", // hs
)

val applicationSignatures = App.instance.getApplicationSignatures()
applicationSignatures.none {
signatures.contains(it.toHexString())
}
}
override val isSwapEnabled = true

override fun getApplicationSignatures() = try {
val signatureList = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class WCSessionViewModel(
"wallet_switchEthereumChain"
)

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

override fun createState() = WCSessionUiState(
peerMeta = peerMeta,
Expand Down

0 comments on commit 27b9d13

Please sign in to comment.