diff --git a/libweb3jsonrpc/WebThreeStubServerBase.cpp b/libweb3jsonrpc/WebThreeStubServerBase.cpp index dae672f58..138d6a506 100644 --- a/libweb3jsonrpc/WebThreeStubServerBase.cpp +++ b/libweb3jsonrpc/WebThreeStubServerBase.cpp @@ -546,7 +546,8 @@ Json::Value WebThreeStubServerBase::eth_getTransactionByHash(string const& _tran try { 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 (...) {