From 3565d42a14feae1af85fa2aabc455d8f1f6da15b Mon Sep 17 00:00:00 2001 From: Christoph Jentzsch Date: Wed, 29 Oct 2014 17:25:02 +0100 Subject: Restructure state tests. Remove FakeStateClass --- vm.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'vm.h') diff --git a/vm.h b/vm.h index ddc6ddb3..632aa996 100644 --- a/vm.h +++ b/vm.h @@ -41,12 +41,12 @@ namespace dev { namespace test { struct FakeExtVMFailure : virtual Exception {}; -class FakeState: public eth::State -{ -public: - /// Execute a contract-creation transaction. - h160 createNewAddress(Address _newAddress, Address _txSender, u256 _endowment, u256 _gasPrice, u256* _gas, bytesConstRef _code, Address _originAddress = {}, eth::SubState* o_sub = nullptr, eth::Manifest* o_ms = nullptr, eth::OnOpFunc const& _onOp = {}, unsigned _level = 0); -}; +//class FakeState: public eth::State +//{ +//public: +// /// Execute a contract-creation transaction. +// h160 createNewAddress(Address _newAddress, Address _txSender, u256 _endowment, u256 _gasPrice, u256* _gas, bytesConstRef _code, Address _originAddress = {}, eth::SubState* o_sub = nullptr, eth::Manifest* o_ms = nullptr, eth::OnOpFunc const& _onOp = {}, unsigned _level = 0); +//}; class FakeExtVM: public eth::ExtVMFace { @@ -82,7 +82,7 @@ public: void importCallCreates(json_spirit::mArray& _callcreates); eth::OnOpFunc simpleTrace(); - FakeState state() const { return m_s; } + //FakeState state() const { return m_s; } std::map, bytes>> addresses; eth::Transactions callcreates; @@ -91,7 +91,7 @@ public: u256 gas; private: - FakeState m_s; + //FakeState m_s; eth::Manifest m_ms; }; -- cgit