Merge pull request #194 from chfast/patch-1

EIP5: include DELEGATECALL
This commit is contained in:
Nick Johnson 2017-02-21 16:51:52 +00:00 committed by GitHub
commit 5972436071

View File

@ -21,10 +21,10 @@ the time the `CALL` returns.
### Specification
The gas and memory semantics for `CALL` and `CALLCODE` (and `DELEGATE_CALL`, if adopted, see EIP-4)
The gas and memory semantics for `CALL`, `CALLCODE` and `DELEGATECALL` (called later as `CALL*`)
are changed in the following way (`CREATE` does not write to memory and is thus unaffected):
Suppose the arguments to `CALL` / `CALLCODE` are `gas, address, value, input_start, input_size, output_start, output_size)`,
Suppose the arguments to `CALL*` are `gas, address, value, input_start, input_size, output_start, output_size`,
then, at the beginning of the opcode, gas for growing memory is only charged for `input_start + input_size`, but not
for `output_start + output_size`.