mirror of https://github.com/status-im/nim-eth.git
removed redundant definitions which are also present in nim-json-serialization/json_serialization/std/net
This commit is contained in:
parent
8d207cec9b
commit
28e684ce80
|
@ -8,12 +8,6 @@ proc writeValue*(w: var JsonWriter, a: MDigest) {.inline.} =
|
||||||
proc readValue*(r: var JsonReader, a: var MDigest) {.inline.} =
|
proc readValue*(r: var JsonReader, a: var MDigest) {.inline.} =
|
||||||
a = fromHex(type(a), r.readValue(string))
|
a = fromHex(type(a), r.readValue(string))
|
||||||
|
|
||||||
proc writeValue*(w: var JsonWriter, a: Port) {.inline.} =
|
|
||||||
w.writeValue uint16(a)
|
|
||||||
|
|
||||||
proc readValue*(r: var JsonReader, a: var Port) {.inline.} =
|
|
||||||
a = Port r.readValue(uint16)
|
|
||||||
|
|
||||||
proc writeValue*(w: var JsonWriter, value: StUint) {.inline.} =
|
proc writeValue*(w: var JsonWriter, value: StUint) {.inline.} =
|
||||||
w.writeValue $value
|
w.writeValue $value
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue