Bound env variables (NUMBER
, TIMESTAMP
) by reasonable values
#2143
Labels
enhancement
New feature or request
NUMBER
, TIMESTAMP
) by reasonable values
#2143
Currently, environmental variables such as
block.number
andblock.timestamp
are symbolic and are only bounded by the type range constraints. We can further restrict their values by adding some reasonable bounds, e.g.,#rangeUInt(32, NUMBER)
forblock.number
, which is ~3 orders of magnitude larger that current block number, as suggested by @ehildenb.The text was updated successfully, but these errors were encountered: