diff options
author | chriseth <chris@ethereum.org> | 2018-08-14 18:14:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-14 18:14:53 +0800 |
commit | d01ffd1ad9737a13a7d39e33246d101b36b5cd93 (patch) | |
tree | 20a7a250cd491fd2d639a4bfd4a19f77a2fc5542 /test/ExecutionFramework.h | |
parent | 6ca3973944546d1a5518274fea47e635a07f9ca5 (diff) | |
parent | b325a70d59baf1afc4e284cc8738d71069ec97c2 (diff) | |
download | dexon-solidity-d01ffd1ad9737a13a7d39e33246d101b36b5cd93.tar.gz dexon-solidity-d01ffd1ad9737a13a7d39e33246d101b36b5cd93.tar.zst dexon-solidity-d01ffd1ad9737a13a7d39e33246d101b36b5cd93.zip |
Merge pull request #4799 from ethereum/semanticsTestsGasEtAl
Semantics 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) |