aboutsummaryrefslogtreecommitdiffstats
path: root/state.cpp
diff options
context:
space:
mode:
authorsubtly <subtly@users.noreply.github.com>2014-11-05 23:11:06 +0800
committersubtly <subtly@users.noreply.github.com>2014-11-05 23:11:06 +0800
commit90a0998968e88dc9fc65476c963b028c0eeaeff4 (patch)
tree01c116b51ff940a550c03356d793abfc661a8075 /state.cpp
parent25811ce5ff6575d1cfc7238a40b0347248336693 (diff)
parentaa41f1c6f1f0cbed7fe21005aab6562cb2588ea4 (diff)
downloaddexon-solidity-90a0998968e88dc9fc65476c963b028c0eeaeff4.tar.gz
dexon-solidity-90a0998968e88dc9fc65476c963b028c0eeaeff4.tar.zst
dexon-solidity-90a0998968e88dc9fc65476c963b028c0eeaeff4.zip
Merge branch 'develop' into crypto
Diffstat (limited to 'state.cpp')
-rw-r--r--state.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/state.cpp b/state.cpp
index b0f279ba..921be5f9 100644
--- a/state.cpp
+++ b/state.cpp
@@ -65,12 +65,7 @@ int stateTest()
// Inject a transaction to transfer funds from miner to me.
bytes tx;
{
- Transaction t;
- t.nonce = s.transactionsFrom(myMiner.address());
- t.value = 1000; // 1e3 wei.
- t.type = eth::Transaction::MessageCall;
- t.receiveAddress = me.address();
- t.sign(myMiner.secret());
+ Transaction t(1000, 0, 0, me.address(), bytes(), s.transactionsFrom(myMiner.address()), myMiner.secret());
assert(t.sender() == myMiner.address());
tx = t.rlp();
}