mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 20:24:55 -05:00
Define Custom Types via function_puller
This commit is contained in:
@@ -51,7 +51,7 @@ class uint64(uint):
|
||||
|
||||
def __new__(cls, value, *args, **kwargs):
|
||||
if value.bit_length() > 64:
|
||||
raise ValueError("value out of bounds for uint128")
|
||||
raise ValueError("value out of bounds for uint64")
|
||||
return super().__new__(cls, value)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user