Skip to content

Fix mistakes in DELEGATECALL semantics#187

Merged
gavofyork merged 2 commits intoethereum:masterfrom
pirapira:delegatecall-arg
Oct 12, 2016
Merged

Fix mistakes in DELEGATECALL semantics#187
gavofyork merged 2 commits intoethereum:masterfrom
pirapira:delegatecall-arg

Conversation

@pirapira
Copy link
Member

This pull request fixes two problems in the DELEGATECALL semantics.

  • Previously the definition of DELEGATECALL referred to the stack element μₛ[2]. However, this element is exactly the one that is available for CALL but removed for DELEGATECALL. Instead, the definition should refer to Iᵥ.
  • Previously the definition of DELEGATECALL did not explain why it takes one fewer arguments than CALL. This pull-request adds the explanation and a remark about re-interpreting all the following arguments.

Before this commit, the semantics of DELEGATECALL referred to
`\mu_s[2]`.  However, this argument is omitted from DELEGATECALL.
Instead, the semantics should refer to `I_v`, which is the current
"value".
@gavofyork gavofyork merged commit f6db569 into ethereum:master Oct 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants