Fix compilation error for Nim devel.

This commit is contained in:
cheatfate 2019-09-03 16:22:55 +03:00
parent 2935b52d63
commit c584583678
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 3 additions and 3 deletions

View File

@ -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)