aboutsummaryrefslogtreecommitdiffstats
path: root/test/RPCSession.cpp
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-08-11 01:19:21 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-08-14 17:42:34 +0800
commit06b7edfdcfd960e5d4012c7d20913efab0516ca1 (patch)
treebc1364f3bc8687c26d3e7d6c7a101e4af64bc9bd /test/RPCSession.cpp
parent3dd31b704af6c50bc56217fd07266f7872daaa44 (diff)
downloaddexon-solidity-06b7edfdcfd960e5d4012c7d20913efab0516ca1.tar.gz
dexon-solidity-06b7edfdcfd960e5d4012c7d20913efab0516ca1.tar.zst
dexon-solidity-06b7edfdcfd960e5d4012c7d20913efab0516ca1.zip
Add missing tests for ``gasleft()``, ``blockhash()`` ``tx.gasprice`` and ``block.gaslimit``.
Diffstat (limited to 'test/RPCSession.cpp')
-rw-r--r--test/RPCSession.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp
index b9b19b2f..9ac24972 100644
--- a/test/RPCSession.cpp
+++ b/test/RPCSession.cpp
@@ -207,6 +207,11 @@ string RPCSession::eth_getStorageRoot(string const& _address, string const& _blo
return rpcCall("eth_getStorageRoot", { quote(address), quote(_blockNumber) }).asString();
}
+string RPCSession::eth_gasPrice()
+{
+ return rpcCall("eth_gasPrice").asString();
+}
+
void RPCSession::personal_unlockAccount(string const& _address, string const& _password, int _duration)
{
BOOST_REQUIRE_MESSAGE(