Skip to content

Commit e73750a

Browse files
committed
feat: code refactored
Signed-off-by: Gaurav Goel <[email protected]>
1 parent c07c2c7 commit e73750a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/src/main/java/com/web3auth/core/Web3Auth.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) {
506506
method: String,
507507
requestParams: JsonArray,
508508
path: String? = "wallet/request",
509-
context: Context
509+
appState: String? = null,
510+
context: Context,
510511
): CompletableFuture<Void> {
511512
val signMsgCF: CompletableFuture<Void> = CompletableFuture()
512513
val sessionId = sessionManager.getSessionId()
@@ -521,6 +522,10 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) {
521522
"options", initOptions
522523
)
523524

525+
appState?.let {
526+
paramMap.put("appState", it)
527+
}
528+
524529
val loginIdCf = getLoginId(paramMap, context)
525530

526531
loginIdCf.whenComplete { loginId, error ->

0 commit comments

Comments
 (0)