fix for the BN/VC communication - related to the lazy initialization of validator public keys

This commit is contained in:
Viktor Kirilov 2020-08-05 13:05:37 +03:00
parent b13b04bd7b
commit 154c6bf8ee

View File

@ -14,7 +14,7 @@ proc fromJson*(n: JsonNode, argName: string, result: var ValidatorPubKey) =
result = ValidatorPubKey.fromHex(n.getStr()).tryGet()
proc `%`*(pubkey: ValidatorPubKey): JsonNode =
result = newJString($pubkey)
result = newJString($initPubKey(pubkey))
proc fromJson*(n: JsonNode, argName: string, result: var List) =
fromJson(n, argName, asSeq result)