Updated on 2026-08-14
This commit is contained in:
parent
5888982e93
commit
0c9e739c7f
2 changed files with 14 additions and 14 deletions
|
|
@ -69,8 +69,7 @@ internal class WcPairSdkDelegate : WcSdkObserver {
|
|||
ifRight = { result ->
|
||||
when (result) {
|
||||
is Wallet.Model.SettledSessionResponse.Result -> result.right()
|
||||
is Wallet.Model.SettledSessionResponse.Error ->
|
||||
ApprovalFailed(result.errorMessage).left()
|
||||
is Wallet.Model.SettledSessionResponse.Error -> ApprovalFailed(result.errorMessage).left()
|
||||
}
|
||||
},
|
||||
)
|
||||
|
|
@ -147,7 +146,7 @@ internal class WcPairSdkDelegate : WcSdkObserver {
|
|||
else -> WcPairError.PairingFailed(this.localizedMessage.orEmpty())
|
||||
}
|
||||
|
||||
private fun Throwable.toApproveError() = WcPairError.ApprovalFailed(this.localizedMessage.orEmpty()).left()
|
||||
private fun Throwable.toApproveError() = ApprovalFailed(this.localizedMessage.orEmpty()).left()
|
||||
|
||||
companion object {
|
||||
private const val CALLBACK_TIMEOUT = 15
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue