wake.ir.expressions.function_call_options
module
#
FunctionCallOptions
class
#
Bases: ExpressionAbc
Sets gas
, value
and salt
function call options.
Serves as a replacement for old-style syntax, e.g. this.foo.gas(1000).value(1)()
.
Example
this.foo{gas: 1000, value: 1}
in the following example:
Source code in wake/ir/expressions/function_call_options.py
children: Iterator[ExpressionAbc]
property
#
Yields:
Type | Description |
---|---|
ExpressionAbc
|
Direct children of this node. |
expression: ExpressionAbc
property
#
names: Tuple[str, ...]
property
#
Returns:
Type | Description |
---|---|
Tuple[str, ...]
|
Names of the function call options in the order they appear in the source code. |
options: Tuple[ExpressionAbc, ...]
property
#
Returns:
Type | Description |
---|---|
Tuple[ExpressionAbc, ...]
|
Values of the function call options in the order they appear in the source code. |