nim-eth icon indicating copy to clipboard operation
nim-eth copied to clipboard

Ensure that uint64 -> int64 doesn't overflow

Open tersec opened this issue 4 years ago • 0 comments

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.

tersec avatar Mar 10 '21 08:03 tersec