Skip to content

Commit 53df9d2

Browse files
Merge pull request #83 from Web3Auth/feat/minor-updates
feat: hide action bar from Webview and update ChainConfig schema
2 parents 10fcb3d + 06c88d7 commit 53df9d2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ class MainActivity : AppCompatActivity(), AdapterView.OnItemClickListener {
195195
chainConfig = ChainConfig(
196196
chainId = "0x1",
197197
rpcTarget = "https://mainnet.infura.io/v3/daeee53504be4cd3a997d4f2718d33e0",
198-
ticker = "ETH",
199198
chainNamespace = ChainNamespace.EIP155
200199
)
201200
)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class WebViewActivity : AppCompatActivity() {
2525
@SuppressLint("SetJavaScriptEnabled")
2626
override fun onCreate(savedInstanceState: Bundle?) {
2727
super.onCreate(savedInstanceState)
28+
supportActionBar?.hide()
2829
setContentView(R.layout.activity_webview)
2930
webView = findViewById(R.id.webView)
3031
swipeRefreshLayout = findViewById(R.id.swipeRefreshLayout)

core/src/main/java/com/web3auth/core/types/ChainConfig.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ package com.web3auth.core.types
22

33
data class ChainConfig(
44
val chainNamespace: ChainNamespace = ChainNamespace.EIP155,
5-
val decimals: Int = 18,
5+
val decimals: Int? = 18,
66
val blockExplorerUrl: String? = null,
77
val chainId: String,
88
val displayName: String? = null,
99
val logo: String? = null,
1010
val rpcTarget: String,
11-
val ticker: String,
11+
val ticker: String? = null,
1212
val tickerName: String? = null,
1313
)

0 commit comments

Comments
 (0)