nim-eth
nim-eth copied to clipboard
Ensure that uint64 -> int64 doesn't overflow
https://github.com/status-im/nim-eth/blob/be5e088b21e06a85cac4826454412db8459ed4f1/eth/common/eth_types.nim#L192-L193
With Nim 1.2.10 and newer, this would raise a RangeError/RangeDefect due to https://github.com/nim-lang/Nim/issues/15210, when the block number's too high.