From 12ac785bffce44e01c1b954837df5388bb008b47 Mon Sep 17 00:00:00 2001 From: tserg <8017125+tserg@users.noreply.github.com> Date: Thu, 16 Nov 2023 21:59:58 +0800 Subject: [PATCH] rewrite shift check --- vyper/builtins/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vyper/builtins/functions.py b/vyper/builtins/functions.py index 6b09c479a1..b4456a2849 100644 --- a/vyper/builtins/functions.py +++ b/vyper/builtins/functions.py @@ -1468,7 +1468,7 @@ def evaluate(self, node): validate_call_args(node, 2) args = [i._metadata.get("folded_value") for i in node.args] - if [i for i in args if not isinstance(i, vy_ast.Int)]: + if any(not isinstance(i, vy_ast.Int) for i in args): raise UnfoldableNode value, shift = [i.value for i in args] if value < 0 or value >= 2**256: