Skip to content

Commit 4fdf2c1

Browse files
authored
Move subscribe and encryptAndSend back to private (#15)
1 parent af75c15 commit 4fdf2c1

File tree

1 file changed

+2
-2
lines changed
  • walletconnect/src/main/java/com/trustwallet/walletconnect

1 file changed

+2
-2
lines changed

walletconnect/src/main/java/com/trustwallet/walletconnect/WCClient.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ open class WCClient (
306306
}
307307
}
308308

309-
open fun subscribe(topic: String): Boolean {
309+
private fun subscribe(topic: String): Boolean {
310310
val message = WCSocketMessage(
311311
topic = topic,
312312
type = MessageType.SUB,
@@ -318,7 +318,7 @@ open class WCClient (
318318
return socket?.send(gson.toJson(message)) ?: false
319319
}
320320

321-
open fun encryptAndSend(result: String): Boolean {
321+
private fun encryptAndSend(result: String): Boolean {
322322
Log.d(TAG,"==> message $result")
323323
val session = this.session ?: throw IllegalStateException("session can't be null on message send")
324324
val payload = gson.toJson(encrypt(result.toByteArray(Charsets.UTF_8), session.key.hexStringToByteArray()))

0 commit comments

Comments
 (0)