Skip to content

Commit 8701bb4

Browse files
committed
chore: remove logs
1 parent daf2159 commit 8701bb4

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

app/src/main/java/to/bitkit/utils/AddressChecker.kt

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ package to.bitkit.utils
33
import io.ktor.client.HttpClient
44
import io.ktor.client.call.body
55
import io.ktor.client.request.get
6-
import io.ktor.http.contentType
76
import kotlinx.serialization.Serializable
8-
import kotlinx.serialization.json.Json
97
import to.bitkit.env.Env
108
import javax.inject.Inject
119
import javax.inject.Singleton
@@ -34,17 +32,8 @@ class AddressChecker @Inject constructor(
3432
try {
3533
val response = client.get("${Env.esploraServerUrl}/tx/$txid")
3634

37-
// Debug: Check content type and body
38-
Logger.debug("Response status: ${response.status}")
39-
Logger.debug("Response content type: ${response.contentType()}")
40-
41-
val bodyAsString = response.body<String>()
42-
Logger.debug("Response body: $bodyAsString")
43-
44-
// Parse manually to see if the JSON structure is correct
45-
return Json.decodeFromString<TxDetails>(bodyAsString)
35+
return response.body<TxDetails>()
4636
} catch (e: Exception) {
47-
Logger.error("getTransaction error", e)
4837
throw AddressCheckerError.NetworkError(e)
4938
}
5039
}

0 commit comments

Comments
 (0)