Skip to content

Commit 882d373

Browse files
committed
add comment to clarify default gas value
1 parent d1787f9 commit 882d373

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vyper/builtins/functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,7 @@ class Send(BuiltinFunction):
12461246

12471247
_id = "send"
12481248
_inputs = [("to", AddressT()), ("value", UINT256_T)]
1249+
# default gas stipend is 0
12491250
_kwargs = {"gas": KwargSettings(UINT256_T, 0)}
12501251
_return_type = None
12511252

@@ -1256,6 +1257,7 @@ def build_IR(self, expr, args, kwargs, context):
12561257
context.check_is_not_constant("send ether", expr)
12571258
return IRnode.from_list(["assert", ["call", gas, to, value, 0, 0, 0, 0]])
12581259

1260+
12591261
class SelfDestruct(BuiltinFunction):
12601262

12611263
_id = "selfdestruct"

0 commit comments

Comments
 (0)