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``.