Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang committed Mar 29, 2024
1 parent c11d124 commit e800f35
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ dependencies {
implementation platform('org.jetbrains.kotlin:kotlin-bom:1.8.0')
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
implementation 'androidx.activity:activity-compose:1.8.2'
implementation platform('androidx.compose:compose-bom:2024.03.00')
implementation platform('androidx.compose:compose-bom:2022.10.00')
implementation 'androidx.compose.ui:ui'
implementation 'androidx.compose.ui:ui-graphics'
implementation 'androidx.compose.ui:ui-tooling-preview'
Expand All @@ -60,7 +60,7 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation platform('androidx.compose:compose-bom:2024.03.00')
androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
debugImplementation 'androidx.compose.ui:ui-tooling'
debugImplementation 'androidx.compose.ui:ui-test-manifest'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,9 @@ class WalletConnectV2Provider(

val params = requestParams()
if (params != null) {
reallyMakeRequest(request, params) { result, error ->
reallyMakeRequest(request, params) { result, requestError ->
CoroutineScope(Dispatchers.Main).launch {
completion(result, error)
completion(result, requestError)
}
}
} else {
Expand All @@ -502,9 +502,9 @@ class WalletConnectV2Provider(
) {
SignClient.request(
request = requestParams,
onSuccess = { request: Sign.Model.SentRequest ->
onSuccess = { sendRequest: Sign.Model.SentRequest ->
Log.d(tag(this@WalletConnectV2Provider), "Wallet request made.")
operationCompletions[request.sessionTopic] = completion
operationCompletions[sendRequest.sessionTopic] = completion
},
onError = { error ->
Log.e(tag(this@WalletConnectV2Provider), error.throwable.stackTraceToString())
Expand Down Expand Up @@ -547,14 +547,14 @@ class WalletConnectV2Provider(
Log.d(tag(this@WalletConnectV2Provider), "Wallet is null")
return
}
if (pairing?.uri == null) {
if (pairing == null) {
Log.d(tag(this@WalletConnectV2Provider), "Pairing is null")
return
}
// val deeplinkPairingUri = it.replace("wc:", "wc://")
val url = WalletConnectUtils.createUrl(
wallet = request.wallet,
deeplink = pairing?.uri,
deeplink = pairing.uri,
type = WalletConnectionType.WalletConnectV2,
context = request.context,
)
Expand Down Expand Up @@ -616,7 +616,7 @@ private fun EthereumTransactionRequest.toJsonRequest(): String? {
val filtered = request.filterValues { it != null }

return try {
JSONObject(filtered as Map<*, *>?).toString()
JSONObject(filtered).toString()
} catch (e: JSONException) {
null
}
Expand Down

0 comments on commit e800f35

Please sign in to comment.