Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ class WalletConnectV2Provider(
private fun fromApprovedSession(session: Sign.Model.ApprovedSession, wallet: Wallet?): WalletInfo {
return WalletInfo(
address = session.account(),
chainId = session.chainId().toString(),
chainId = session.chainId(),
wallet = wallet,
peerName = session.metaData?.name,
peerImageUrl = session.metaData?.icons?.firstOrNull(),
Expand Down Expand Up @@ -613,10 +613,10 @@ class WalletConnectV2Provider(
}
}

private fun Sign.Model.ApprovedSession.chainId(): Int? {
private fun Sign.Model.ApprovedSession.chainId(): String? {
val split = accounts.first().split(":")
return if (split.count() > 1) {
split[1].toInt()
split[1]
} else {
null
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ android.nonTransitiveRClass=true

LIBRARY_GROUP=dydxprotocol
LIBRARY_ARTIFACT_ID=cartera-android
LIBRARY_VERSION_NAME=0.1.21
LIBRARY_VERSION_NAME=0.1.22

android.enableR8.fullMode = false