Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubuid committed Jan 23, 2025
1 parent d48c8f1 commit 27b9185
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ internal class RelayJsonRpcInteractor(
storePushRequestsIfEnabled(relayRequest, topic)
Subscription(decryptMessage(topic, relayRequest), relayRequest.message, topic, relayRequest.publishedAt, relayRequest.attestation)
}.collect { subscription ->
println("kobe: Message: ${subscription.decryptedMessage}")
if (subscription.decryptedMessage.isNotEmpty()) {
try {
manageSubscriptions(subscription)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ abstract class BaseRelayClient : RelayInterface {
val publishParams = RelayDTO.Publish.Request.Params(Topic(topic), message, Ttl(ttl), tag, prompt, correlationId, rpcMethods, chainId, txHashes, contractAddresses)
val publishRequest = RelayDTO.Publish.Request(id = id ?: generateClientToServerId(), params = publishParams)
observePublishResult(publishRequest.id, onResult)

println("kobe: IRN publish: $publishRequest")

relayService.publishRequest(publishRequest)
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ class TVF(private val moshi: Moshi) {
?.firstOrNull()
?.to
?.let { listOf(it) }
?: listOf("")
}.getOrElse {
println("Error parsing rpcParams: $it")
listOf("")
}
}.getOrNull()
}

else -> null
Expand Down Expand Up @@ -61,7 +57,7 @@ class TVF(private val moshi: Moshi) {
else -> null
}
} catch (e: Exception) {
println("kobe: error processing $rpcMethod - $e")
println("error processing $rpcMethod - $e")
null
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class TVFTests {
// Assert
assertNotNull(result)
assertEquals(listOf("eth_sendTransaction"), result?.first)
assertEquals(listOf(""), result?.second)
assertEquals(null, result?.second)
assertEquals("1", result?.third)
}

Expand Down

0 comments on commit 27b9185

Please sign in to comment.