From 502457633d008a22d70c855ad242bcc6357fafc7 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Thu, 1 Feb 2024 19:01:18 +1100 Subject: [PATCH] bump json-rpc to 0.4.0 and fix test --- ethers.nimble | 2 +- ethers/providers/jsonrpc/json.nim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ethers.nimble b/ethers.nimble index c88167f..41edfa5 100644 --- a/ethers.nimble +++ b/ethers.nimble @@ -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" diff --git a/ethers/providers/jsonrpc/json.nim b/ethers/providers/jsonrpc/json.nim index bff9344..5ccd3d0 100644 --- a/ethers/providers/jsonrpc/json.nim +++ b/ethers/providers/jsonrpc/json.nim @@ -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,