From c5845836788f740fc41bd622a14ebadee9df2452 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Tue, 3 Sep 2019 16:22:55 +0300 Subject: [PATCH] Fix compilation error for Nim devel. --- libp2p/crypto/secp.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libp2p/crypto/secp.nim b/libp2p/crypto/secp.nim index c4a015421..f41fcc15b 100644 --- a/libp2p/crypto/secp.nim +++ b/libp2p/crypto/secp.nim @@ -110,7 +110,7 @@ proc init*(key: var SkPrivateKey, data: string): bool {.inline.} = ## Procedure returns ``true`` on success. var buffer: seq[byte] try: - buffer = fromHex(stripSpaces(data)) + buffer = utils.fromHex(stripSpaces(data)) except: return false result = init(key, buffer) @@ -141,7 +141,7 @@ proc init*(key: var SkPublicKey, data: string): bool = ## Procedure returns ``true`` on success. var buffer: seq[byte] try: - buffer = fromHex(stripSpaces(data)) + buffer = utils.fromHex(stripSpaces(data)) except: return false result = init(key, buffer) @@ -166,7 +166,7 @@ proc init*(sig: var SkSignature, data: string): bool = ## Procedure returns ``true`` on success. var buffer: seq[byte] try: - buffer = fromHex(stripSpaces(data)) + buffer = utils.fromHex(stripSpaces(data)) except: return false result = init(sig, buffer)