diff --git a/libweb3jsonrpc/WebThreeStubServerBase.cpp b/libweb3jsonrpc/WebThreeStubServerBase.cpp index 0da75535b..e0fac4f10 100644 --- a/libweb3jsonrpc/WebThreeStubServerBase.cpp +++ b/libweb3jsonrpc/WebThreeStubServerBase.cpp @@ -242,6 +242,8 @@ static int toBlockNumber(string const& _string) { if (_string.compare("latest") == 0) return -1; + if (_string.compare("pending") == 0) + return 0; return jsToInt(_string); }