mirror of https://github.com/vacp2p/nim-libp2p.git
Fix compilation error for Nim devel.
This commit is contained in:
parent
2935b52d63
commit
c584583678
|
@ -110,7 +110,7 @@ proc init*(key: var SkPrivateKey, data: string): bool {.inline.} =
|
||||||
## Procedure returns ``true`` on success.
|
## Procedure returns ``true`` on success.
|
||||||
var buffer: seq[byte]
|
var buffer: seq[byte]
|
||||||
try:
|
try:
|
||||||
buffer = fromHex(stripSpaces(data))
|
buffer = utils.fromHex(stripSpaces(data))
|
||||||
except:
|
except:
|
||||||
return false
|
return false
|
||||||
result = init(key, buffer)
|
result = init(key, buffer)
|
||||||
|
@ -141,7 +141,7 @@ proc init*(key: var SkPublicKey, data: string): bool =
|
||||||
## Procedure returns ``true`` on success.
|
## Procedure returns ``true`` on success.
|
||||||
var buffer: seq[byte]
|
var buffer: seq[byte]
|
||||||
try:
|
try:
|
||||||
buffer = fromHex(stripSpaces(data))
|
buffer = utils.fromHex(stripSpaces(data))
|
||||||
except:
|
except:
|
||||||
return false
|
return false
|
||||||
result = init(key, buffer)
|
result = init(key, buffer)
|
||||||
|
@ -166,7 +166,7 @@ proc init*(sig: var SkSignature, data: string): bool =
|
||||||
## Procedure returns ``true`` on success.
|
## Procedure returns ``true`` on success.
|
||||||
var buffer: seq[byte]
|
var buffer: seq[byte]
|
||||||
try:
|
try:
|
||||||
buffer = fromHex(stripSpaces(data))
|
buffer = utils.fromHex(stripSpaces(data))
|
||||||
except:
|
except:
|
||||||
return false
|
return false
|
||||||
result = init(sig, buffer)
|
result = init(sig, buffer)
|
||||||
|
|
Loading…
Reference in New Issue