format
This commit is contained in:
parent
cfb51e0825
commit
87d20b1c94
@ -790,14 +790,15 @@ of
|
|||||||
- single null byte
|
- single null byte
|
||||||
- name of the child contract
|
- name of the child contract
|
||||||
|
|
||||||
|
The resulting contract's public key can be predicted and in case it happens to
|
||||||
|
have some funds before its creation, its balance will remain or be increased by
|
||||||
|
the `value` parameter.
|
||||||
|
|
||||||
The `value` argument (default `0`) is equivalent to the value in the contract
|
The `value` argument (default `0`) is equivalent to the value in the contract
|
||||||
creation transaction – it sets the initial value of the newly created contract
|
creation transaction – it sets the initial value of the newly created contract
|
||||||
charging the calling contract. Note that this won't be visible in `Call.value`
|
charging the calling contract. Note that this won't be visible in `Call.value`
|
||||||
in the `init` call of the new contract. It will be included in
|
in the `init` call of the new contract. It will be included in
|
||||||
`Contract.balance`, however. The resulting contract's public key can be
|
`Contract.balance`, however.
|
||||||
predicted and in case it happens to have some funds before its creation, its
|
|
||||||
balance will remain or be increased by the `value` parameter.
|
|
||||||
|
|
||||||
|
|
||||||
The type `'c` must be instantiated with a contract.
|
The type `'c` must be instantiated with a contract.
|
||||||
@ -845,24 +846,20 @@ remaining unnamed arguments. This operation is significantly cheaper than
|
|||||||
The `gas` argument (default `Call.gas_left`) limits the gas supply for the
|
The `gas` argument (default `Call.gas_left`) limits the gas supply for the
|
||||||
`init` call of the cloned contract.
|
`init` call of the cloned contract.
|
||||||
|
|
||||||
|
|
||||||
The `value` argument (default `0`) is equivalent to the value in the contract
|
The `value` argument (default `0`) is equivalent to the value in the contract
|
||||||
creation transaction – it sets the initial value of the newly created contract
|
creation transaction – it sets the initial value of the newly created contract
|
||||||
charging the calling contract. Note that this won't be visible in `Call.value`
|
charging the calling contract. Note that this won't be visible in `Call.value`
|
||||||
in the `init` call of the new contract. It will be included in
|
in the `init` call of the new contract. It will be included in
|
||||||
`Contract.balance`, however.
|
`Contract.balance`, however.
|
||||||
|
|
||||||
|
|
||||||
The `protected` argument (default `false`) works identically as in remote calls.
|
The `protected` argument (default `false`) works identically as in remote calls.
|
||||||
If set to `true` it will change the return type to `option('c)` and will catch
|
If set to `true` it will change the return type to `option('c)` and will catch
|
||||||
all errors such as `abort`, out of gas and wrong arguments. Note that it can
|
all errors such as `abort`, out of gas and wrong arguments. Note that it can
|
||||||
only take a boolean *literal*, so other expressions such as variables will be
|
only take a boolean *literal*, so other expressions such as variables will be
|
||||||
rejected by the compiler.
|
rejected by the compiler.
|
||||||
|
|
||||||
|
|
||||||
The type `'c` must be instantiated with a contract.
|
The type `'c` must be instantiated with a contract.
|
||||||
|
|
||||||
|
|
||||||
Example usage:
|
Example usage:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user