| 60 | { |
| 61 | |
| 62 | BlockNumber jsToBlockNumber(std::string const& _js) |
| 63 | { |
| 64 | if (_js == "latest") |
| 65 | return LatestBlock; |
| 66 | else if (_js == "earliest") |
| 67 | return 0; |
| 68 | else if (_js == "pending") |
| 69 | return PendingBlock; |
| 70 | else |
| 71 | return (unsigned)jsToInt(_js); |
| 72 | } |
| 73 | |
| 74 | } |
| 75 |
no test coverage detected