Updated on 2026-08-14

This commit is contained in:
Tangem 2025-09-08 11:59:41 +03:00
parent 146261c8fc
commit 458fc16dcb
3 changed files with 9 additions and 3 deletions

View file

@ -36,7 +36,12 @@ internal class DefaultWcRespondService : WcRespondService {
}
is Wallet.Model.JsonRpcResponse.JsonRpcResult -> {
Timber.tag(WC_TAG).i("Successful respond $response for request $request")
response.result.right()
if (response.result == null) {
Timber.tag(WC_TAG).e(
"Response result is null, but it should be String. Casted to empty",
)
}
(response.result ?: "").right()
}
}
continuation.resume(result)

View file

@ -56,6 +56,7 @@ internal class DefaultWcPairUseCaseTest {
proposerPublicKey = "",
relayProtocol = "",
relayData = "",
scopedProperties = null,
)
private val sdkVerifyContext: Wallet.Model.VerifyContext
get() = Wallet.Model.VerifyContext(