System information
Geth version: geth version
CL client & version: e.g. lighthouse/nimbus/[email protected]
OS & Version: Windows/Linux/OSX
Commit hash : (if develop)
Expected behaviour
In ethclient toBlockNumArg(rpc.PendingBlockNumber) would return "pending"
Actual behaviour
Gives error err invalid argument 0: hex string without 0x prefix
this is because in rpc.PendingBlockNumber is -2 rpc.type.go:68
but in ethclient's internal function toBlockNumArg, "pending == -1" ethclient/ethclient.go:588
Steps to reproduce the behaviour
Backtrace
When submitting logs: please submit them as text and not screenshots.