diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-08-11 01:19:21 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-08-14 17:42:34 +0800 |
commit | 06b7edfdcfd960e5d4012c7d20913efab0516ca1 (patch) | |
tree | bc1364f3bc8687c26d3e7d6c7a101e4af64bc9bd /test/ExecutionFramework.h | |
parent | 3dd31b704af6c50bc56217fd07266f7872daaa44 (diff) | |
download | dexon-solidity-06b7edfdcfd960e5d4012c7d20913efab0516ca1.tar dexon-solidity-06b7edfdcfd960e5d4012c7d20913efab0516ca1.tar.gz dexon-solidity-06b7edfdcfd960e5d4012c7d20913efab0516ca1.tar.bz2 dexon-solidity-06b7edfdcfd960e5d4012c7d20913efab0516ca1.tar.lz dexon-solidity-06b7edfdcfd960e5d4012c7d20913efab0516ca1.tar.xz dexon-solidity-06b7edfdcfd960e5d4012c7d20913efab0516ca1.tar.zst dexon-solidity-06b7edfdcfd960e5d4012c7d20913efab0516ca1.zip |
Add missing tests for ``gasleft()``, ``blockhash()`` ``tx.gasprice`` and ``block.gaslimit``.
Diffstat (limited to 'test/ExecutionFramework.h')
-rw-r--r-- | test/ExecutionFramework.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ExecutionFramework.h b/test/ExecutionFramework.h index cdbec81d..0b42f9d0 100644 --- a/test/ExecutionFramework.h +++ b/test/ExecutionFramework.h @@ -194,6 +194,13 @@ public: return encodeArgs(u256(0x20), u256(_arg.size()), _arg); } + u256 gasLimit() const; + u256 gasPrice() const; + u256 blockHash(u256 const& _blockNumber) const; + u256 const& blockNumber() const { + return m_blockNumber; + } + private: template <class CppFunction, class... Args> auto callCppAndEncodeResult(CppFunction const& _cppFunction, Args const&... _arguments) |