From 52726088f3cb34381117731696dafde5faa27fb8 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Sat, 26 Mar 2016 04:06:40 +0300 Subject: [PATCH] actually fix build --- rpc/src/v1/tests/eth.rs | 4 ++-- rpc/src/v1/tests/net.rs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rpc/src/v1/tests/eth.rs b/rpc/src/v1/tests/eth.rs index 815321a73..182f6c368 100644 --- a/rpc/src/v1/tests/eth.rs +++ b/rpc/src/v1/tests/eth.rs @@ -40,7 +40,7 @@ fn accounts_provider() -> Arc { fn sync_provider() -> Arc { Arc::new(TestSyncProvider::new(Config { - network_version: 65, + network_id: U256::from(3), num_peers: 120, })) } @@ -83,7 +83,7 @@ impl Default for EthTester { #[test] fn rpc_eth_protocol_version() { let request = r#"{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}"#; - let response = r#"{"jsonrpc":"2.0","result":"65","id":1}"#; + let response = r#"{"jsonrpc":"2.0","result":"63","id":1}"#; assert_eq!(EthTester::default().io.handle_request(request), Some(response.to_owned())); } diff --git a/rpc/src/v1/tests/net.rs b/rpc/src/v1/tests/net.rs index da42b4241..036ced168 100644 --- a/rpc/src/v1/tests/net.rs +++ b/rpc/src/v1/tests/net.rs @@ -18,10 +18,11 @@ use std::sync::Arc; use jsonrpc_core::IoHandler; use v1::{Net, NetClient}; use v1::tests::helpers::{Config, TestSyncProvider}; +use util::numbers::*; fn sync_provider() -> Arc { Arc::new(TestSyncProvider::new(Config { - network_id: 3, + network_id: U256::from(3), num_peers: 120, })) }