Add missing tests for `gasleft(), blockhash() tx.gasprice and block.gaslimit`.

This commit is contained in:
Daniel Kirchner
2018-08-14 11:42:34 +02:00
parent 3dd31b704a
commit 06b7edfdcf
5 changed files with 109 additions and 0 deletions
+7
View File
@@ -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)