aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2014-10-15 17:49:53 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2014-10-15 17:49:53 +0800
commitde8880d41e737c3e5528215df4173007a9078394 (patch)
treec28ca37fd2f6b28643f651aa94dad86cb6df771f
parent76ea9f804d8690cc4f6bb63cda58ba875bcce895 (diff)
downloaddexon-solidity-de8880d41e737c3e5528215df4173007a9078394.tar.gz
dexon-solidity-de8880d41e737c3e5528215df4173007a9078394.tar.zst
dexon-solidity-de8880d41e737c3e5528215df4173007a9078394.zip
jsonrpc renaming properties in request
-rw-r--r--ethstubclient.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/ethstubclient.h b/ethstubclient.h
index 71452c03..e2f1fb90 100644
--- a/ethstubclient.h
+++ b/ethstubclient.h
@@ -19,10 +19,10 @@ class EthStubClient
delete this->client;
}
- std::string balanceAt(const std::string& a, const int& block) throw (jsonrpc::JsonRpcException)
+ std::string balanceAt(const std::string& address, const int& block) throw (jsonrpc::JsonRpcException)
{
Json::Value p;
- p["a"] = a;
+ p["address"] = address;
p["block"] = block;
Json::Value result = this->client->CallMethod("balanceAt",p);
@@ -59,10 +59,10 @@ p["block"] = block;
}
- std::string codeAt(const std::string& a, const int& block) throw (jsonrpc::JsonRpcException)
+ std::string codeAt(const std::string& address, const int& block) throw (jsonrpc::JsonRpcException)
{
Json::Value p;
- p["a"] = a;
+ p["address"] = address;
p["block"] = block;
Json::Value result = this->client->CallMethod("codeAt",p);
@@ -85,10 +85,10 @@ p["block"] = block;
}
- double countAt(const std::string& a, const int& block) throw (jsonrpc::JsonRpcException)
+ double countAt(const std::string& address, const int& block) throw (jsonrpc::JsonRpcException)
{
Json::Value p;
- p["a"] = a;
+ p["address"] = address;
p["block"] = block;
Json::Value result = this->client->CallMethod("countAt",p);
@@ -313,12 +313,12 @@ p["s"] = s;
}
- std::string stateAt(const std::string& a, const int& block, const std::string& s) throw (jsonrpc::JsonRpcException)
+ std::string stateAt(const std::string& address, const int& block, const std::string& storage) throw (jsonrpc::JsonRpcException)
{
Json::Value p;
- p["a"] = a;
+ p["address"] = address;
p["block"] = block;
-p["s"] = s;
+p["storage"] = storage;
Json::Value result = this->client->CallMethod("stateAt",p);
if (result.isString())