From 60edb49fa38f45a1737142e644c938b43a8773d8 Mon Sep 17 00:00:00 2001 From: Gaurav Goel Date: Mon, 16 Dec 2024 10:56:59 +0530 Subject: [PATCH] feat: namespace change Signed-off-by: Gaurav Goel --- .../java/com/web3auth/singlefactorauth/SingleFactorAuth.kt | 4 ++-- .../java/com/web3auth/singlefactorauth/types/SignMessage.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/SingleFactorAuth.kt b/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/SingleFactorAuth.kt index 65e165a..55e2e16 100644 --- a/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/SingleFactorAuth.kt +++ b/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/SingleFactorAuth.kt @@ -360,7 +360,7 @@ class SingleFactorAuth( ) walletMap.addProperty("sessionId", sessionId) walletMap.addProperty("platform", "android") - walletMap.addProperty("sessionNamespace", "sfa") + walletMap.addProperty("namespace", "sfa") val walletHash = "b64Params=" + gson.toJson(walletMap).toByteArray(Charsets.UTF_8) @@ -432,7 +432,7 @@ class SingleFactorAuth( params = gson.toJson(requestParams) ), appState = appState.let { it }, - sessionNamespace = "sfa" + namespace = "sfa" ) val signMessageHash = diff --git a/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/types/SignMessage.kt b/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/types/SignMessage.kt index 9517c17..edc49fa 100644 --- a/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/types/SignMessage.kt +++ b/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/types/SignMessage.kt @@ -6,7 +6,7 @@ data class SignMessage( val platform: String = "android", val request: RequestData, val appState: String? = null, - val sessionNamespace: String = "sfa" + val namespace: String = "sfa" ) data class RequestData(