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
property
#
Yields:
| Type | Description |
|---|---|
ExpressionAbc
|
Direct children of this node. |
expression
property
#
Example
address(this).call and new MyToken in the following example:
Returns:
| Type | Description |
|---|---|
ExpressionAbc
|
Sub-expression the function call options are applied to. |
names
property
#
options
property
#
Returns:
| Type | Description |
|---|---|
Tuple[ExpressionAbc, ...]
|
Values of the function call options in the order they appear in the source code. |