diff --git a/ethcore/src/transaction.rs b/ethcore/src/transaction.rs index 00ea784d4..a5e70b0d6 100644 --- a/ethcore/src/transaction.rs +++ b/ethcore/src/transaction.rs @@ -67,6 +67,24 @@ impl Transaction { } } + /// Create a new message-call transaction. + #[allow(dead_code)] + pub fn new_call(to: Address, value: U256, data: Bytes, gas: U256, gas_price: U256, nonce: U256) -> Transaction { + Transaction { + nonce: nonce, + gas_price: gas_price, + gas: gas, + action: Action::Call(to), + value: value, + data: data, + v: 0, + r: x!(0), + s: x!(0), + hash: RefCell::new(None), + sender: RefCell::new(None), + } + } + /// Create a new contract-creation transaction. #[cfg(test)] pub fn new_create(value: U256, data: Bytes, gas: U256, gas_price: U256, nonce: U256) -> Transaction { diff --git a/install-deps.sh b/install-deps.sh index b10d373b7..15b863682 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -463,4 +463,4 @@ function run_installer() finish } -run_installer \ No newline at end of file +run_installer diff --git a/rpc/Cargo.toml b/rpc/Cargo.toml index 60b29c5d4..bea85a74f 100644 --- a/rpc/Cargo.toml +++ b/rpc/Cargo.toml @@ -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 Result { 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()) } }