mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixed jsonrpc param types
This commit is contained in:
parent
eb72beb7c3
commit
25d71c1167
@ -39,7 +39,7 @@ p["block"] = block;
|
||||
p["numberOrHash"] = numberOrHash;
|
||||
|
||||
Json::Value result = this->client->CallMethod("block",p);
|
||||
if (result.isArray())
|
||||
if (result.isObject())
|
||||
return result;
|
||||
else
|
||||
throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
|
||||
@ -374,7 +374,7 @@ p["s"] = s;
|
||||
p["numberOrHash"] = numberOrHash;
|
||||
|
||||
Json::Value result = this->client->CallMethod("transaction",p);
|
||||
if (result.isArray())
|
||||
if (result.isObject())
|
||||
return result;
|
||||
else
|
||||
throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
|
||||
@ -388,7 +388,7 @@ p["numberOrHash"] = numberOrHash;
|
||||
p["numberOrHash"] = numberOrHash;
|
||||
|
||||
Json::Value result = this->client->CallMethod("uncle",p);
|
||||
if (result.isArray())
|
||||
if (result.isObject())
|
||||
return result;
|
||||
else
|
||||
throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
|
||||
|
@ -256,6 +256,7 @@ BOOST_AUTO_TEST_CASE(jsonrpc_toFixed)
|
||||
BOOST_AUTO_TEST_CASE(jsonrpc_transact)
|
||||
{
|
||||
cnote << "Testing jsonrpc transact...";
|
||||
|
||||
web3.ethereum()->setAddress(keys[0].address());
|
||||
auto receiver = KeyPair::create();
|
||||
dev::eth::mine(*(web3.ethereum()), 1);
|
||||
|
Loading…
Reference in New Issue
Block a user