From 070b0cfba0bf32da66b8640740d54d9e2a850833 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Thu, 25 May 2023 10:29:27 -0400 Subject: [PATCH] fix: add error message for send() builtin (#3459) --- vyper/builtins/functions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vyper/builtins/functions.py b/vyper/builtins/functions.py index 915f10ede3..af965afe0a 100644 --- a/vyper/builtins/functions.py +++ b/vyper/builtins/functions.py @@ -1247,7 +1247,9 @@ def build_IR(self, expr, args, kwargs, context): to, value = args gas = kwargs["gas"] context.check_is_not_constant("send ether", expr) - return IRnode.from_list(["assert", ["call", gas, to, value, 0, 0, 0, 0]]) + return IRnode.from_list( + ["assert", ["call", gas, to, value, 0, 0, 0, 0]], error_msg="send failed" + ) class SelfDestruct(BuiltinFunction):