From 87d20b1c94906deb7afd104d18b02826c1bd887e Mon Sep 17 00:00:00 2001 From: radrow Date: Mon, 17 May 2021 19:14:28 +0200 Subject: [PATCH] format --- docs/sophia_stdlib.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/sophia_stdlib.md b/docs/sophia_stdlib.md index 89cc667..c44549d 100644 --- a/docs/sophia_stdlib.md +++ b/docs/sophia_stdlib.md @@ -790,14 +790,15 @@ of - single null byte - 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 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` in the `init` call of the new contract. It will be included in -`Contract.balance`, however. 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. +`Contract.balance`, however. 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 `init` call of the cloned 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 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 `Contract.balance`, however. - 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 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 rejected by the compiler. - The type `'c` must be instantiated with a contract. - Example usage: ```