diff options
author | chriseth <chris@ethereum.org> | 2016-09-06 18:55:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-06 18:55:59 +0800 |
commit | 2f133b99be5074451d91ba0ff856c3c24f2e84bc (patch) | |
tree | fb1487d432b15fb4e8b83421e8b8b0571b7b6dc3 | |
parent | 5535f96e2ce19b58f532ce6203cc749f487de053 (diff) | |
parent | a6c35c08f512a30e776e8a57191c1cc8e7b243a0 (diff) | |
download | dexon-solidity-2f133b99be5074451d91ba0ff856c3c24f2e84bc.tar dexon-solidity-2f133b99be5074451d91ba0ff856c3c24f2e84bc.tar.gz dexon-solidity-2f133b99be5074451d91ba0ff856c3c24f2e84bc.tar.bz2 dexon-solidity-2f133b99be5074451d91ba0ff856c3c24f2e84bc.tar.lz dexon-solidity-2f133b99be5074451d91ba0ff856c3c24f2e84bc.tar.xz dexon-solidity-2f133b99be5074451d91ba0ff856c3c24f2e84bc.tar.zst dexon-solidity-2f133b99be5074451d91ba0ff856c3c24f2e84bc.zip |
Merge pull request #1021 from ethereum/assembly-docs
Fix the return value of call in inline assembly
-rw-r--r-- | docs/control-structures.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst index 0e430b6b..e6dfe4f6 100644 --- a/docs/control-structures.rst +++ b/docs/control-structures.rst @@ -523,7 +523,8 @@ The opcodes ``pushi`` and ``jumpdest`` cannot be used directly. +-------------------------+------+-----------------------------------------------------------------+ | call(g, a, v, in, | | call contract at address a with input mem[in..(in+insize)) | | insize, out, outsize) | | providing g gas and v wei and output area | -| | | mem[out..(out+outsize)) returning 1 on error (out of gas) | +| | | mem[out..(out+outsize)) returning 0 on error (eg. out of gas) | +| | | and 1 on success | +-------------------------+------+-----------------------------------------------------------------+ | callcode(g, a, v, in, | | identical to `call` but only use the code from a and stay | | insize, out, outsize) | | in the context of the current contract otherwise | |