aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-09-28 07:04:40 +0800
committerGitHub <noreply@github.com>2018-09-28 07:04:40 +0800
commitc4b5101b9d8337069c495b95b04a420e2665aa2d (patch)
tree7348765fe7db6c74a8003dc8a972e477fa30fe41 /docs
parentf36dee1067f09e2a6e5ec0dc5996e19e5f36c8bd (diff)
parent8d8c855810ed51d17cab679cd89f7a75410a4258 (diff)
downloaddexon-solidity-c4b5101b9d8337069c495b95b04a420e2665aa2d.tar
dexon-solidity-c4b5101b9d8337069c495b95b04a420e2665aa2d.tar.gz
dexon-solidity-c4b5101b9d8337069c495b95b04a420e2665aa2d.tar.bz2
dexon-solidity-c4b5101b9d8337069c495b95b04a420e2665aa2d.tar.lz
dexon-solidity-c4b5101b9d8337069c495b95b04a420e2665aa2d.tar.xz
dexon-solidity-c4b5101b9d8337069c495b95b04a420e2665aa2d.tar.zst
dexon-solidity-c4b5101b9d8337069c495b95b04a420e2665aa2d.zip
Merge pull request #4676 from jwasinger/extcodehash
Add support for EXTCODEHASH
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 |