Browse Source

fixed blockNumber in jsonrpc transaction

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
6714143a92
  1. 3
      libweb3jsonrpc/WebThreeStubServerBase.cpp

3
libweb3jsonrpc/WebThreeStubServerBase.cpp

@ -546,7 +546,8 @@ Json::Value WebThreeStubServerBase::eth_getTransactionByHash(string const& _tran
try try
{ {
h256 h = jsToFixed<32>(_transactionHash); h256 h = jsToFixed<32>(_transactionHash);
return toJson(client()->transaction(h), client()->transactionLocation(h), client()->numberFromHash(h)); auto l = client()->transactionLocation(h);
return toJson(client()->transaction(h), l, client()->numberFromHash(l.first));
} }
catch (...) catch (...)
{ {

Loading…
Cancel
Save