diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-11-18 18:46:38 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-11-18 18:46:38 +0800 |
commit | 1d278d28575866f9d001fea75776fbd61cb2e3ce (patch) | |
tree | dac09adb7015173583560f1957df5d5457d008a1 /vm.h | |
parent | 51a0ca457fa5495d9e4fda387c9f5d3f776a56c4 (diff) | |
parent | 09be38b0c1a7283bae8e84fe41aba8a2b916a608 (diff) | |
download | dexon-solidity-1d278d28575866f9d001fea75776fbd61cb2e3ce.tar.gz dexon-solidity-1d278d28575866f9d001fea75776fbd61cb2e3ce.tar.zst dexon-solidity-1d278d28575866f9d001fea75776fbd61cb2e3ce.zip |
Merge branch 'develop' into mk_jsonrpc_upgrade
Conflicts:
alethzero/MainWin.cpp
libweb3jsonrpc/WebThreeStubServer.cpp
libweb3jsonrpc/abstractwebthreestubserver.h
libweb3jsonrpc/spec.json
test/jsonrpc.cpp
test/webthreestubclient.h
Diffstat (limited to 'vm.h')
-rw-r--r-- | vm.h | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -29,25 +29,19 @@ along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>. #include "JsonSpiritHeaders.h" #include <libdevcore/Log.h> #include <libdevcore/CommonIO.h> -#include <libevmface/Instruction.h> +#include <libevmcore/Instruction.h> #include <libevm/ExtVMFace.h> #include <libevm/VM.h> #include <liblll/Compiler.h> #include <libethereum/Transaction.h> #include <libethereum/ExtVM.h> #include <libethereum/State.h> +#include "TestHelper.h" 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 FakeExtVM: public eth::ExtVMFace { public: @@ -67,8 +61,6 @@ public: void setContract(Address _myAddress, u256 _myBalance, u256 _myNonce, std::map<u256, u256> const& _storage, bytes const& _code); void set(Address _a, u256 _myBalance, u256 _myNonce, std::map<u256, u256> const& _storage, bytes const& _code); void reset(u256 _myBalance, u256 _myNonce, std::map<u256, u256> const& _storage); - u256 toInt(json_spirit::mValue const& _v); - byte toByte(json_spirit::mValue const& _v); void push(json_spirit::mObject& o, std::string const& _n, u256 _v); void push(json_spirit::mArray& a, u256 _v); u256 doPosts(); @@ -82,7 +74,6 @@ public: void importCallCreates(json_spirit::mArray& _callcreates); eth::OnOpFunc simpleTrace(); - FakeState state() const { return m_s; } std::map<Address, std::tuple<u256, u256, std::map<u256, u256>, bytes>> addresses; eth::Transactions callcreates; @@ -91,7 +82,6 @@ public: u256 gas; private: - FakeState m_s; eth::Manifest m_ms; }; |