From 693a639b32ad5806a3dfd6063de6d6eecfe64501 Mon Sep 17 00:00:00 2001 From: Miraculous Owonubi Date: Tue, 21 Sep 2021 11:59:53 +0100 Subject: [PATCH] update nearcore; fix validators method --- Cargo.toml | 8 ++++---- src/methods.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cdd40874..0263adef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,10 +22,10 @@ borsh = "0.9" serde = "1.0.127" serde_json = "1.0.66" -near-primitives = { git = "https://github.com/near/nearcore", rev="526381542c1e5c0012d89fc308f370e45543374f" } -near-chain-configs = { git = "https://github.com/near/nearcore", rev="526381542c1e5c0012d89fc308f370e45543374f" } -near-client-primitives = { git = "https://github.com/near/nearcore", rev="526381542c1e5c0012d89fc308f370e45543374f" } -near-jsonrpc-primitives = { git = "https://github.com/near/nearcore", rev="526381542c1e5c0012d89fc308f370e45543374f" } +near-primitives = { git = "https://github.com/near/nearcore", rev="4306275e57edf6a918e73b2b442ffb110761a264" } +near-chain-configs = { git = "https://github.com/near/nearcore", rev="4306275e57edf6a918e73b2b442ffb110761a264" } +near-client-primitives = { git = "https://github.com/near/nearcore", rev="4306275e57edf6a918e73b2b442ffb110761a264" } +near-jsonrpc-primitives = { git = "https://github.com/near/nearcore", rev="4306275e57edf6a918e73b2b442ffb110761a264" } [dev-dependencies] tokio = { version = "1.1", features = ["rt", "macros"] } diff --git a/src/methods.rs b/src/methods.rs index ffc85a73..1e470d1b 100644 --- a/src/methods.rs +++ b/src/methods.rs @@ -423,7 +423,7 @@ impl_method! { type Result = EpochValidatorInfo; type Error = RpcValidatorError; - params(&self) { json!([self]) } + params(&self) { json!(self) } } } }