bump json-rpc to 0.4.0 and fix test

This commit is contained in:
Eric 2024-02-01 19:01:18 +11:00
parent 1b083e10ad
commit 502457633d
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ requires "chronicles >= 0.10.3 & < 0.11.0"
requires "chronos >= 4.0.0 & < 4.1.0"
requires "contractabi >= 0.6.0 & < 0.7.0"
requires "questionable >= 0.10.2 & < 0.11.0"
requires "json_rpc >= 0.3.0 & < 0.4.0"
requires "json_rpc >= 0.4.0 & < 0.5.0"
requires "stint"
requires "stew"
requires "eth"

View File

@ -333,9 +333,9 @@ proc fromJson*[T: ref object or object](
proc fromJson*(
_: type JsonNode,
json: string
jsn: string
): ?!JsonNode =
return parse(json)
return json.parseJson(jsn)
proc fromJson*[T: ref object or object](
_: type T,