mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-24 21:40:03 +00:00
parent
9522c611bc
commit
d7d1e072ba
@ -14,6 +14,7 @@ proc fromJson*(n: JsonNode, argName: string, result: var ValidatorPubKey) =
|
|||||||
result = ValidatorPubKey.fromHex(n.getStr()).tryGet()
|
result = ValidatorPubKey.fromHex(n.getStr()).tryGet()
|
||||||
|
|
||||||
proc `%`*(pubkey: ValidatorPubKey): JsonNode =
|
proc `%`*(pubkey: ValidatorPubKey): JsonNode =
|
||||||
|
unsafePromote(pubkey.unsafeAddr)
|
||||||
result = newJString($pubkey)
|
result = newJString($pubkey)
|
||||||
|
|
||||||
proc fromJson*(n: JsonNode, argName: string, result: var List) =
|
proc fromJson*(n: JsonNode, argName: string, result: var List) =
|
||||||
@ -31,6 +32,7 @@ proc fromJson*(n: JsonNode, argName: string, result: var ValidatorSig) =
|
|||||||
result = ValidatorSig.fromHex(n.getStr()).tryGet()
|
result = ValidatorSig.fromHex(n.getStr()).tryGet()
|
||||||
|
|
||||||
proc `%`*(value: ValidatorSig): JsonNode =
|
proc `%`*(value: ValidatorSig): JsonNode =
|
||||||
|
unsafePromote(value.unsafeAddr)
|
||||||
result = newJString($value)
|
result = newJString($value)
|
||||||
|
|
||||||
proc fromJson*(n: JsonNode, argName: string, result: var Version) =
|
proc fromJson*(n: JsonNode, argName: string, result: var Version) =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user