diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-08 00:20:05 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-10 21:24:56 +0800 |
commit | 3128ec2ca5d30aaca78aae457642214f3f52e31f (patch) | |
tree | 74ef3c659d3a29db108f1f2e5cdc21b5ac25b33c /test/ExecutionFramework.h | |
parent | af8e31b023723bfc6baa224931ef6570cd8d9a32 (diff) | |
download | dexon-solidity-3128ec2ca5d30aaca78aae457642214f3f52e31f.tar.gz dexon-solidity-3128ec2ca5d30aaca78aae457642214f3f52e31f.tar.zst dexon-solidity-3128ec2ca5d30aaca78aae457642214f3f52e31f.zip |
Add blockNumber and blockTimestamp to ExecutionFramework
Diffstat (limited to 'test/ExecutionFramework.h')
-rw-r--r-- | test/ExecutionFramework.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ExecutionFramework.h b/test/ExecutionFramework.h index 733fd56d..76d0fd8c 100644 --- a/test/ExecutionFramework.h +++ b/test/ExecutionFramework.h @@ -262,6 +262,7 @@ protected: void sendMessage(bytes const& _data, bool _isCreation, u256 const& _value = 0); void sendEther(Address const& _to, u256 const& _value); size_t currentTimestamp(); + size_t blockTimestamp(u256 number); /// @returns the (potentially newly created) _ith address. Address account(size_t _i); @@ -284,6 +285,7 @@ protected: bool m_showMessages = false; Address m_sender; Address m_contractAddress; + u256 m_blockNumber; u256 const m_gasPrice = 100 * szabo; u256 const m_gas = 100000000; bytes m_output; |