Skip to content

Commit a441599

Browse files
committed
Use ignoreCase instead of 2x toLowerCase
1 parent 8c980eb commit a441599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/main/kotlin/org/walletconnect/impls/WCSession.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class WCSession(
219219
}
220220

221221
private fun accountCheck(id: Long, address: String): Boolean {
222-
approvedAccounts?.find { it.toLowerCase() == address.toLowerCase() } ?: run {
222+
approvedAccounts?.find { it.equals(address, ignoreCase = true) } ?: run {
223223
handlePayloadError(Session.MethodCallException.InvalidAccount(id, address))
224224
return false
225225
}

0 commit comments

Comments
 (0)