Browse Source

transact value may be int

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
9cf1fb0dc7
  1. 9
      libweb3jsonrpc/WebThreeStubServer.cpp

9
libweb3jsonrpc/WebThreeStubServer.cpp

@ -380,8 +380,13 @@ static TransactionSkeleton toTransaction(Json::Value const& _json)
ret.from = jsToAddress(_json["from"].asString());
if (_json["to"].isString())
ret.to = jsToAddress(_json["to"].asString());
if (_json["value"].isString())
ret.value = jsToU256(_json["value"].asString());
if (!_json["value"].empty())
{
if (_json["value"].isString())
ret.value = jsToU256(_json["value"].asString());
else if (_json["value"].isInt())
ret.value = u256(_json["value"].asInt());
}
if (!_json["gas"].empty())
{
if (_json["gas"].isString())

Loading…
Cancel
Save