File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
particle-auth-core/android
particle-connect/android/src/main/kotlin/network/particle/connect_plugin/module Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ android {
53
53
54
54
dependencies {
55
55
implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
56
- def sdkVersion = " 2.1.20 "
56
+ def sdkVersion = " 2.1.21 "
57
57
implementation(" network.particle:connect-common:$sdkVersion " )
58
58
implementation(" network.particle:base-service:$sdkVersion " )
59
59
implementation(" network.particle:mpc-core:$sdkVersion " )
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import com.connect.common.model.*
15
15
import com.connect.common.utils.AppUtils
16
16
import com.evm.adapter.EVMConnectAdapter
17
17
import com.google.gson.reflect.TypeToken
18
+ import com.particle.auth.AuthCore
18
19
import com.particle.base.Env
19
20
import com.particle.base.ParticleNetwork
20
21
import com.particle.base.data.ErrorInfo
@@ -543,8 +544,15 @@ object ConnectBridge {
543
544
)
544
545
return
545
546
}
546
- val typedData = MessageProcess .processTypedData(signData.message)
547
- val escapedJson = typedData.replace(" \" " , " \\\" " )
547
+
548
+ val escapedJson = if (connectAdapter is AuthCoreAdapter ){
549
+ val typedData = MessageProcess .start(signData.message)
550
+ typedData
551
+ }else {
552
+ val typedData = MessageProcess .processTypedData(signData.message)
553
+ typedData.replace(" \" " , " \\\" " )
554
+ }
555
+
548
556
connectAdapter.signTypedData(signData.publicAddress, escapedJson, object : SignCallback {
549
557
override fun onError (error : ConnectError ) {
550
558
LogUtils .d(" onError" , error.toString())
You can’t perform that action at this time.
0 commit comments