diff options
Diffstat (limited to 'vm.h')
-rw-r--r-- | vm.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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<Address, std::tuple<u256, u256, std::map<u256, u256>, bytes>> addresses; eth::Transactions callcreates; @@ -91,7 +91,7 @@ public: u256 gas; private: - FakeState m_s; + //FakeState m_s; eth::Manifest m_ms; }; |