aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-09-26 23:12:54 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-09-26 23:12:54 +0800
commit8d8c855810ed51d17cab679cd89f7a75410a4258 (patch)
tree968213a9cfb42f423317f32bb99386e05175c569 /docs
parentf2fa5133204b6c98c67b5336e8714647147221c0 (diff)
downloaddexon-solidity-8d8c855810ed51d17cab679cd89f7a75410a4258.tar
dexon-solidity-8d8c855810ed51d17cab679cd89f7a75410a4258.tar.gz
dexon-solidity-8d8c855810ed51d17cab679cd89f7a75410a4258.tar.bz2
dexon-solidity-8d8c855810ed51d17cab679cd89f7a75410a4258.tar.lz
dexon-solidity-8d8c855810ed51d17cab679cd89f7a75410a4258.tar.xz
dexon-solidity-8d8c855810ed51d17cab679cd89f7a75410a4258.tar.zst
dexon-solidity-8d8c855810ed51d17cab679cd89f7a75410a4258.zip
Add extcodehash to the assembly documentation
Diffstat (limited to 'docs')
-rw-r--r--docs/assembly.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/assembly.rst b/docs/assembly.rst
index 5d723645..02a802a8 100644
--- a/docs/assembly.rst
+++ b/docs/assembly.rst
@@ -271,12 +271,14 @@ In the grammar, opcodes are represented as pre-defined identifiers.
+-------------------------+-----+---+-----------------------------------------------------------------+
| returndatacopy(t, f, s) | `-` | B | copy s bytes from returndata at position f to mem at position t |
+-------------------------+-----+---+-----------------------------------------------------------------+
+| 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 |
| | | | and return the new address |
+-------------------------+-----+---+-----------------------------------------------------------------+
| create2(v, n, p, s) | | C | create new contract with code mem[p...(p+s)) at address |
-| | | | keccak256(<address> . n . keccak256(mem[p...(p+s))) and send v |
-| | | | wei and return the new address |
+| | | | keccak256(0xff . <address> . n . keccak256(mem[p...(p+s))) |
+| | | | and send v wei and return the new address |
+-------------------------+-----+---+-----------------------------------------------------------------+
| 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 |