Skip to content

Commit

Permalink
fix: comments and upgrad jrt
Browse files Browse the repository at this point in the history
  • Loading branch information
whalelephant committed Jan 10, 2022
1 parent 348ab33 commit 77ac195
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 44 deletions.
85 changes: 47 additions & 38 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ version = "0.14"
features = [ "http1", "runtime", "server", "tcp" ]

[dependencies.json-rpc-types]
git = "https://github.com/whalelephant/json-rpc-types"
branch = "deserialize-version-with-str"
version = "1.0"
version = "1.0.2"

[dependencies.jsonrpc-core]
version = "18"
Expand Down Expand Up @@ -107,7 +105,7 @@ version = "1"

[dependencies.serde_json]
version = "1"
features = [ "arbitrary_precision", "raw_value" ]
features = [ "arbitrary_precision" ]

[dependencies.structopt]
version = "0.3"
Expand Down
2 changes: 0 additions & 2 deletions src/rpc/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ async fn handle_rpc<N: Network, E: Environment>(
};

// Deserialize the JSON-RPC request.
// First deserialize into serde_json::Value - a workaround https://github.com/serde-rs/json/issues/505
// for https://github.com/AleoHQ/snarkOS/issues/1369
let req = if let Ok(req_data) = serde_json::from_slice::<serde_json::Value>(&data) {
match serde_json::from_value::<jrt::Request<Params>>(req_data) {
Ok(req) => req,
Expand Down

0 comments on commit 77ac195

Please sign in to comment.