mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not use modifyTimestamp where not needed
This commit is contained in:
parent
3128ec2ca5
commit
4cf44f1b41
@ -1482,9 +1482,12 @@ BOOST_AUTO_TEST_CASE(now)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
m_rpc.test_modifyTimestamp(0x776347e2);
|
|
||||||
compileAndRun(sourceCode);
|
compileAndRun(sourceCode);
|
||||||
BOOST_CHECK(callContractFunction("someInfo()") == encodeArgs(true, 0x776347e3));
|
u256 startBlock = m_blockNumber;
|
||||||
|
auto ret = callContractFunction("someInfo()");
|
||||||
|
u256 endBlock = m_blockNumber;
|
||||||
|
BOOST_CHECK(startBlock != endBlock);
|
||||||
|
BOOST_CHECK(ret == encodeArgs(true, blockTimestamp(endBlock)));
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(type_conversions_cleanup)
|
BOOST_AUTO_TEST_CASE(type_conversions_cleanup)
|
||||||
|
Loading…
Reference in New Issue
Block a user