Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #331 from ethcore/reveal_surprise
Browse files Browse the repository at this point in the history
reveal surprise
  • Loading branch information
arkpar committed Feb 3, 2016
2 parents 619a604 + 0b3acf7 commit 755b081
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion rpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
description = "Ethcore jsonrpc"
name = "ethcore-rpc"
version = "0.1.0"
version = "0.9.0"
license = "GPL-3.0"
authors = ["Ethcore <[email protected]"]

Expand All @@ -17,4 +17,5 @@ ethcore-util = { path = "../util" }
ethcore = { path = "../ethcore" }
ethsync = { path = "../sync" }
clippy = "0.0.37"
target_info = "0.1.0"

1 change: 1 addition & 0 deletions rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![plugin(serde_macros)]
#![plugin(clippy)]

extern crate target_info;
extern crate serde;
extern crate serde_json;
extern crate jsonrpc_core;
Expand Down
4 changes: 2 additions & 2 deletions rpc/src/v1/impls/web3.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//! Web3 rpc implementation.
use target_info::Target;
use jsonrpc_core::*;
use v1::traits::Web3;

Expand All @@ -13,8 +14,7 @@ impl Web3Client {
impl Web3 for Web3Client {
fn client_version(&self, params: Params) -> Result<Value, Error> {
match params {
//Params::None => Ok(Value::String("parity/0.1.0/-/rust1.7-nightly".to_owned())),
Params::None => Ok(Value::String("surprise/0.1.0/surprise/surprise".to_owned())),
Params::None => Ok(Value::String(format!("Parity/{}/{}-{}-{}", env!("CARGO_PKG_VERSION"), Target::arch(), Target::env(), Target::os()))),
_ => Err(Error::invalid_params())
}
}
Expand Down

0 comments on commit 755b081

Please sign in to comment.