diff options
author | Christoph Jentzsch <jentzsch.software@gmail.com> | 2014-10-01 19:59:07 +0800 |
---|---|---|
committer | Christoph Jentzsch <jentzsch.software@gmail.com> | 2014-10-01 19:59:07 +0800 |
commit | 4d7a55f8e21cb0067d11165d3bd21b9a82ee48ee (patch) | |
tree | 63274724fdb540c8f4ba9d12e3ce73d65a16dc40 /vm.h | |
parent | 244b7871112a5097b366458b2e1bc50e344f13cc (diff) | |
download | dexon-solidity-4d7a55f8e21cb0067d11165d3bd21b9a82ee48ee.tar dexon-solidity-4d7a55f8e21cb0067d11165d3bd21b9a82ee48ee.tar.gz dexon-solidity-4d7a55f8e21cb0067d11165d3bd21b9a82ee48ee.tar.bz2 dexon-solidity-4d7a55f8e21cb0067d11165d3bd21b9a82ee48ee.tar.lz dexon-solidity-4d7a55f8e21cb0067d11165d3bd21b9a82ee48ee.tar.xz dexon-solidity-4d7a55f8e21cb0067d11165d3bd21b9a82ee48ee.tar.zst dexon-solidity-4d7a55f8e21cb0067d11165d3bd21b9a82ee48ee.zip |
corrected CALLSTATELESS test, style fixes, code length independent call in FakeExtVM
Diffstat (limited to 'vm.h')
-rw-r--r-- | vm.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -23,9 +23,10 @@ along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>. #pragma once -#include <libethereum/State.h> #include <fstream> #include <cstdint> +#include <boost/test/unit_test.hpp> +#include "JsonSpiritHeaders.h" #include <libdevcore/Log.h> #include <libevmface/Instruction.h> #include <libevm/ExtVMFace.h> @@ -33,8 +34,7 @@ along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>. #include <liblll/Compiler.h> #include <libethereum/Transaction.h> #include <libethereum/ExtVM.h> -#include "JsonSpiritHeaders.h" -#include <boost/test/unit_test.hpp> +#include <libethereum/State.h> namespace dev { namespace test { @@ -42,8 +42,7 @@ class FakeExtVM: public eth::ExtVMFace { public: FakeExtVM() {} - FakeExtVM(eth::BlockInfo const& _previousBlock, eth::BlockInfo const& _currentBlock): - ExtVMFace(Address(), Address(), Address(), 0, 1, bytesConstRef(), bytesConstRef(), _previousBlock, _currentBlock) {} + FakeExtVM(eth::BlockInfo const& _previousBlock, eth::BlockInfo const& _currentBlock); u256 store(u256 _n) { return std::get<2>(addresses[myAddress])[_n]; } void setStore(u256 _n, u256 _v) { std::get<2>(addresses[myAddress])[_n] = _v; } |