Merge branch 'whizz' of github.com:ethereum/cpp-ethereum into whizz

This commit is contained in:
Gav Wood 2015-07-20 17:54:52 +02:00
commit 189b298ae1
2 changed files with 6 additions and 2 deletions

View File

@ -1188,7 +1188,7 @@ BOOST_AUTO_TEST_CASE(now)
{ {
char const* sourceCode = "contract test {\n" char const* sourceCode = "contract test {\n"
" function someInfo() returns (bool success) {\n" " function someInfo() returns (bool success) {\n"
" return block.timestamp() == now && now > 0;\n" " return block.timestamp == now && now > 0;\n"
" }\n" " }\n"
"}\n"; "}\n";
compileAndRun(sourceCode); compileAndRun(sourceCode);

View File

@ -41,7 +41,11 @@ namespace test
class ExecutionFramework class ExecutionFramework
{ {
public: public:
ExecutionFramework() { g_logVerbosity = 0; } ExecutionFramework()
{
g_logVerbosity = 0;
m_state.resetCurrent();
}
bytes const& compileAndRunWithoutCheck( bytes const& compileAndRunWithoutCheck(
std::string const& _sourceCode, std::string const& _sourceCode,