diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-20 00:00:23 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-20 00:13:18 +0800 |
commit | ab4178941b1f1d99bf266cd0a27d79a27162513a (patch) | |
tree | d1bcc1c293e9a551f41495eda567a2b3b10243fc /solidityExecutionFramework.h | |
parent | 933d65e9863e4f1d57500ccba85e6cde116d962a (diff) | |
download | dexon-solidity-ab4178941b1f1d99bf266cd0a27d79a27162513a.tar dexon-solidity-ab4178941b1f1d99bf266cd0a27d79a27162513a.tar.gz dexon-solidity-ab4178941b1f1d99bf266cd0a27d79a27162513a.tar.bz2 dexon-solidity-ab4178941b1f1d99bf266cd0a27d79a27162513a.tar.lz dexon-solidity-ab4178941b1f1d99bf266cd0a27d79a27162513a.tar.xz dexon-solidity-ab4178941b1f1d99bf266cd0a27d79a27162513a.tar.zst dexon-solidity-ab4178941b1f1d99bf266cd0a27d79a27162513a.zip |
Adding blockhash test in Solidity ExpressionCompiler
Diffstat (limited to 'solidityExecutionFramework.h')
-rw-r--r-- | solidityExecutionFramework.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/solidityExecutionFramework.h b/solidityExecutionFramework.h index 1160d046..1aea61fe 100644 --- a/solidityExecutionFramework.h +++ b/solidityExecutionFramework.h @@ -29,7 +29,6 @@ #include <libethereum/State.h> #include <libethereum/Executive.h> #include <libsolidity/CompilerStack.h> -#include "TestHelper.h" namespace dev { @@ -129,12 +128,6 @@ public: return bytes(); } - eth::LastHashes setCurrentBlockNumber(u256 _currentBlockNumber) - { - m_lastHashes = dev::test::lastHashes(_currentBlockNumber); - return m_lastHashes; - } - private: template <class CppFunction, class... Args> auto callCppAndEncodeResult(CppFunction const& _cppFunction, Args const&... _arguments) @@ -153,7 +146,7 @@ private: void sendMessage(bytes const& _data, bool _isCreation, u256 const& _value = 0) { m_state.addBalance(m_sender, _value); // just in case - eth::Executive executive(m_state, m_lastHashes, 0); + eth::Executive executive(m_state, eth::LastHashes(), 0); eth::Transaction t = _isCreation ? eth::Transaction(_value, m_gasPrice, m_gas, _data, 0, KeyPair::create().sec()) : eth::Transaction(_value, m_gasPrice, m_gas, m_contractAddress, _data, 0, KeyPair::create().sec()); bytes transactionRLP = t.rlp(); @@ -191,7 +184,6 @@ protected: u256 const m_gas = 1000000; bytes m_output; eth::LogEntries m_logs; - eth::LastHashes m_lastHashes; }; } |