From bc47c2513873490117da0fab35e6edbca96d1db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Rowicki?= <35342116+radrow@users.noreply.github.com> Date: Mon, 22 Mar 2021 10:26:34 +0100 Subject: [PATCH] Mention `init` quirk with Call.value --- docs/sophia_stdlib.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/sophia_stdlib.md b/docs/sophia_stdlib.md index 5603907..c08aa9e 100644 --- a/docs/sophia_stdlib.md +++ b/docs/sophia_stdlib.md @@ -569,12 +569,15 @@ Call.caller : address The address of the entity (possibly another contract) calling the contract. + ### value ``` Call.value : int ``` -The amount of coins transferred to the contract in the call. +The amount of coins transferred to the contract in the call. Note that in the `init` +entrypoint this value will be always `0` – in order to get the contract creation value +one needs to inspect `Contract.balance`. ### gas