MCPcopy Create free account
hub / github.com/LUX-Core/lux / jsToBlockNumber

Function jsToBlockNumber

src/cpp-ethereum/libethcore/CommonJS.cpp:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60{
61
62BlockNumber 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

Callers 13

eth_getBalanceMethod · 0.85
eth_getStorageAtMethod · 0.85
eth_getStorageRootMethod · 0.85
eth_getCodeMethod · 0.85
eth_callMethod · 0.85
eth_getBlockByNumberMethod · 0.85
debug_traceCallMethod · 0.85

Calls 1

jsToIntFunction · 0.85

Tested by

no test coverage detected