aboutsummaryrefslogtreecommitdiffstats
path: root/docs/assembly.rst
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-10 17:50:49 +0800
committerchriseth <chris@ethereum.org>2018-10-10 17:50:49 +0800
commit3bbb1ee2c062d72feffd969b2d1850023f73b67f (patch)
tree462b365da870713d7c60cda0365577855b4d6943 /docs/assembly.rst
parent06200b4b64c911ea2e0b12076e0fa02093dacbf8 (diff)
downloaddexon-solidity-3bbb1ee2c062d72feffd969b2d1850023f73b67f.tar
dexon-solidity-3bbb1ee2c062d72feffd969b2d1850023f73b67f.tar.gz
dexon-solidity-3bbb1ee2c062d72feffd969b2d1850023f73b67f.tar.bz2
dexon-solidity-3bbb1ee2c062d72feffd969b2d1850023f73b67f.tar.lz
dexon-solidity-3bbb1ee2c062d72feffd969b2d1850023f73b67f.tar.xz
dexon-solidity-3bbb1ee2c062d72feffd969b2d1850023f73b67f.tar.zst
dexon-solidity-3bbb1ee2c062d72feffd969b2d1850023f73b67f.zip
Fix create2
Diffstat (limited to 'docs/assembly.rst')
-rw-r--r--docs/assembly.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/assembly.rst b/docs/assembly.rst
index 20fb0cd5..5bb9825a 100644
--- a/docs/assembly.rst
+++ b/docs/assembly.rst
@@ -282,14 +282,14 @@ In the grammar, opcodes are represented as pre-defined identifiers.
+-------------------------+-----+---+-----------------------------------------------------------------+
| extcodehash(a) | | C | code hash of address a |
+-------------------------+-----+---+-----------------------------------------------------------------+
-| create(v, p, s) | | F | create new contract with code mem[p...(p+s)) and send v wei |
+| create(v, p, n) | | F | create new contract with code mem[p...(p+n)) and send v wei |
| | | | and return the new address |
+-------------------------+-----+---+-----------------------------------------------------------------+
-| create2(v, n, p, s) | | C | create new contract with code mem[p...(p+s)) at address |
-| | | | keccak256(0xff . self . n . keccak256(mem[p...(p+s))) |
+| 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 |
-| | | | 8 byte value, ``self`` is the current contract's address |
-| | | | as a 20 byte value and ``n`` is a big-endian 256-bit value |
+| | | | 8 byte value, ``this`` is the current contract's address |
+| | | | as a 20 byte value and ``s`` is a big-endian 256-bit value |
+-------------------------+-----+---+-----------------------------------------------------------------+
| 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 |