aboutsummaryrefslogtreecommitdiffstats
path: root/vm.h
diff options
context:
space:
mode:
authorChristoph Jentzsch <jentzsch.software@gmail.com>2014-10-01 19:59:07 +0800
committerChristoph Jentzsch <jentzsch.software@gmail.com>2014-10-01 19:59:07 +0800
commit4d7a55f8e21cb0067d11165d3bd21b9a82ee48ee (patch)
tree63274724fdb540c8f4ba9d12e3ce73d65a16dc40 /vm.h
parent244b7871112a5097b366458b2e1bc50e344f13cc (diff)
downloaddexon-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.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/vm.h b/vm.h
index 50c4b292..6771fa76 100644
--- a/vm.h
+++ b/vm.h
@@ -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; }