From ff965830d8d0ef51fbc557a2725c53f7b41bd644 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Tue, 27 Nov 2018 14:42:49 +0200 Subject: [PATCH] Fix chat example to show peers in base58. --- examples/chat.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/chat.nim b/examples/chat.nim index 07432d4d2..5d353c577 100644 --- a/examples/chat.nim +++ b/examples/chat.nim @@ -101,7 +101,7 @@ proc main() {.async.} = var id = await data.api.identity() proc streamHandler(api: DaemonAPI, stream: P2PStream) {.async.} = - echo "= Peer ", toHex(stream.peer), " joined chat" + echo "= Peer ", Base58.encode(stream.peer), " joined chat" data.remotes.add(stream.transp) while true: var line = await stream.transp.readLine()