aboutsummaryrefslogtreecommitdiffstats
path: root/vm.h
diff options
context:
space:
mode:
authorChristoph Jentzsch <jentzsch.software@gmail.com>2014-10-30 00:25:02 +0800
committerChristoph Jentzsch <jentzsch.software@gmail.com>2014-10-30 00:25:02 +0800
commit3565d42a14feae1af85fa2aabc455d8f1f6da15b (patch)
treec6b04acddaa515fd8ee30e75d0440cf57c092ec3 /vm.h
parent33813722006cdf49ba32543cbfc48ee27aac8e84 (diff)
downloaddexon-solidity-3565d42a14feae1af85fa2aabc455d8f1f6da15b.tar.gz
dexon-solidity-3565d42a14feae1af85fa2aabc455d8f1f6da15b.tar.zst
dexon-solidity-3565d42a14feae1af85fa2aabc455d8f1f6da15b.zip
Restructure state tests. Remove FakeStateClass
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h16
1 files changed, 8 insertions, 8 deletions
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<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;
};