diff --git a/docs/yul.rst b/docs/yul.rst index 2f9b0f98e..f63acf6f2 100644 --- a/docs/yul.rst +++ b/docs/yul.rst @@ -828,13 +828,14 @@ the ``dup`` and ``swap`` instructions as well as ``jump`` instructions, labels a | extcodehash(a) | | C | code hash of address a | +-------------------------+-----+---+-----------------------------------------------------------------+ | create(v, p, n) | | F | create new contract with code mem[p...(p+n)) and send v wei | -| | | | and return the new address | +| | | | and return the new address; returns 0 on error | +-------------------------+-----+---+-----------------------------------------------------------------+ | create2(v, p, n, s) | | C | create new contract with code mem[p...(p+n)) at address | | | | | keccak256(0xff . this . s . keccak256(mem[p...(p+n))) | | | | | and send v wei and return the new address, where ``0xff`` is a | | | | | 1 byte value, ``this`` is the current contract's address | -| | | | as a 20 byte value and ``s`` is a big-endian 256-bit value | +| | | | as a 20 byte value and ``s`` is a big-endian 256-bit value; | +| | | | returns 0 on error | +-------------------------+-----+---+-----------------------------------------------------------------+ | call(g, a, v, in, | | F | call contract at address a with input mem[in...(in+insize)) | | insize, out, outsize) | | | providing g gas and v wei and output area |