diff --git a/beacon_chain/eth2_json_rpc_serialization.nim b/beacon_chain/eth2_json_rpc_serialization.nim index 63212a7ee..ad6045ad1 100644 --- a/beacon_chain/eth2_json_rpc_serialization.nim +++ b/beacon_chain/eth2_json_rpc_serialization.nim @@ -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)