From 90fad0c49bc3ec67e35fe8a72f3b90fbc40edd87 Mon Sep 17 00:00:00 2001 From: radrow Date: Mon, 17 May 2021 19:18:05 +0200 Subject: [PATCH] format --- docs/sophia_stdlib.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/sophia_stdlib.md b/docs/sophia_stdlib.md index f0e01dd..efbddd8 100644 --- a/docs/sophia_stdlib.md +++ b/docs/sophia_stdlib.md @@ -772,7 +772,8 @@ Chain.bytecode_hash : 'c => option(hash) Returns the hash of the contract's bytecode (or `None` if it is nonexistent or deployed before FATE2). The type `'c` must be instantiated with a contract. The -charged gas is affine to the size of the serialized bytecode. +charged gas is affine to the size of the serialized bytecode of the deployed +contract. #### create @@ -835,12 +836,12 @@ Chain.clone : ( ref : 'c, gas : int, value : int, protected : bool, ... Clones the contract under the mandatory named argument `ref`. That means a new contract of the same bytecode and the same `payable` parameter shall be created. -The resulting contract's public key can be predicted and in case it happens to -have some funds before its creation, its balance will be increased by -the `value` parameter. **NOTE:** the `state` won't be copied and the contract -will be initialized with a regular call to the `init` function with the -remaining unnamed arguments. This operation is significantly cheaper than -`Chain.create` as it costs a fixed amount of gas. +**NOTE:** the `state` won't be copied and the contract will be initialized with +a regular call to the `init` function with the remaining unnamed arguments. The +resulting contract's public key can be predicted and in case it happens to have +some funds before its creation, its balance will be increased by the `value` +parameter. This operation is significantly cheaper than `Chain.create` as it +costs a fixed amount of gas. The `gas` argument (default `Call.gas_left`) limits the gas supply for the