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 #330 from ethcore/revertremoval
Browse files Browse the repository at this point in the history
Revert removal of `new_code`.
  • Loading branch information
debris committed Feb 3, 2016
2 parents 9cd29b7 + a0c2c6e commit 619a604
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions ethcore/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -463,4 +463,4 @@ function run_installer()
finish
}

run_installer
run_installer

0 comments on commit 619a604

Please sign in to comment.