From cf8a1a60a4ab92c06917109c7ec9fce3ab34c30c Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Thu, 4 Nov 2021 12:19:17 +0200 Subject: [PATCH] Work-around a Nim compilation error --- libp2p/peerid.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libp2p/peerid.nim b/libp2p/peerid.nim index b719d1ed2..0219b1a02 100644 --- a/libp2p/peerid.nim +++ b/libp2p/peerid.nim @@ -30,7 +30,8 @@ type func `$`*(pid: PeerID): string = ## Return base58 encoded ``pid`` representation. - Base58.encode(pid.data) + # This unusual call syntax is used to avoid a strange Nim compilation error + base58.encode(Base58, pid.data) func shortLog*(pid: PeerId): string = ## Returns compact string representation of ``pid``.