mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-22 04:24:05 +00:00
display ExecutionAddress
as hex string (#5029)
When logging `ExecutionAddress`, serialize it as a hex string instead of as a byte array.
This commit is contained in:
parent
12381d5f33
commit
336acbd39b
@ -382,6 +382,9 @@ proc readValue*(reader: var JsonReader, value: var ExecutionAddress) {.
|
||||
raiseUnexpectedValue(reader,
|
||||
"ExecutionAddress value should be a valid hex string")
|
||||
|
||||
func `$`*(v: ExecutionAddress): string =
|
||||
v.data.toHex()
|
||||
|
||||
func shortLog*(v: SomeBeaconBlock): auto =
|
||||
(
|
||||
slot: shortLog(v.slot),
|
||||
|
Loading…
x
Reference in New Issue
Block a user