Skip to content

Commit 2adec20

Browse files
committed
feat: Update fetchProjectConfig API inout params
Signed-off-by: Gaurav Goel <[email protected]>
1 parent e73750a commit 2adec20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/com/web3auth/app/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class MainActivity : AppCompatActivity(), AdapterView.OnItemClickListener {
251251
chainId = "0x89",
252252
rpcTarget = "https://polygon-rpc.com/",
253253
chainNamespace = ChainNamespace.EIP155
254-
), "personal_sign", requestParams = params, context = this
254+
), "personal_sign", requestParams = params, appState = "web3Auth", context = this
255255
)
256256
signMsgCompletableFuture.whenComplete { _, error ->
257257
if (error == null) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) {
380380
try {
381381
val result = web3AuthApi.fetchProjectConfig(
382382
web3AuthOption.clientId,
383-
web3AuthOption.network.name
383+
web3AuthOption.network.name.lowercase()
384384
)
385385
if (result.isSuccessful && result.body() != null) {
386386
val response = result.body()

0 commit comments

Comments
 (0)