You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similarly, in convert.py::_literal_decimal(), in case the out type is signed, the HexBytes value is not sign-extended, note that in the current state of the codebase, this is not reachable because of Codegen panic when Converting literal bytes to decimal:
if isinstance(expr, (vy_ast.Hex, vy_ast.Bytes)) and out_typ.is_signed:
val = _signextend(expr, val, arg_typ)
Version Information
vyper --version
): b635696What's your issue about?
Per @trocher
when calling
_literal_decimal()
, the compiler will crash:This happens as trying to construct a
Decimal
from abytes
is not supported:The following code lead the compiler to panic:
The text was updated successfully, but these errors were encountered: