diff options
author | Christoph Jentzsch <jentzsch.software@gmail.com> | 2014-11-04 00:53:29 +0800 |
---|---|---|
committer | Christoph Jentzsch <jentzsch.software@gmail.com> | 2014-11-04 00:53:29 +0800 |
commit | c931e3ceec902c31734fe6e7143a209d7637611f (patch) | |
tree | 5cbdae45a37d3104e8c3d1567f1ab75a107010e9 /state.cpp | |
parent | 72c7132a3af9836c34b350fa295e34959bacce87 (diff) | |
download | dexon-solidity-c931e3ceec902c31734fe6e7143a209d7637611f.tar dexon-solidity-c931e3ceec902c31734fe6e7143a209d7637611f.tar.gz dexon-solidity-c931e3ceec902c31734fe6e7143a209d7637611f.tar.bz2 dexon-solidity-c931e3ceec902c31734fe6e7143a209d7637611f.tar.lz dexon-solidity-c931e3ceec902c31734fe6e7143a209d7637611f.tar.xz dexon-solidity-c931e3ceec902c31734fe6e7143a209d7637611f.tar.zst dexon-solidity-c931e3ceec902c31734fe6e7143a209d7637611f.zip |
style
Diffstat (limited to 'state.cpp')
-rw-r--r-- | state.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -55,7 +55,7 @@ void doStateTests(json_spirit::mValue& v, bool _fillin) BOOST_REQUIRE(o.count("pre") > 0); BOOST_REQUIRE(o.count("transaction") > 0); - ImportTest importer(o,_fillin); + ImportTest importer(o, _fillin); if (_fillin) { @@ -64,20 +64,9 @@ void doStateTests(json_spirit::mValue& v, bool _fillin) } State theState = importer.m_statePre; - bytes tx = importer.m_transaction.rlp(); - bytes output; - // check - - for (auto const& a: theState.addresses()) - { - cout << "address: " << a.first << endl; - cout << "balance: " << theState.balance(a.first) << endl; - cout << "has code: " << theState.addressHasCode(a.first) << endl; - } - try { theState.execute(tx, &output); |