Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
fix calldata transfer in staticcall
Browse files Browse the repository at this point in the history
  • Loading branch information
winsvega authored and chfast committed May 22, 2017
1 parent 388bb95 commit 2b5f678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libevm/VMCalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ bool VM::caseCallSetup(CallParameters *callParams, bytesRef& o_output)
callParams->codeAddress = asAddress(m_SP[1]);

unsigned inOutOffset = 0;
if (m_OP == Instruction::DELEGATECALL)
if (m_OP == Instruction::DELEGATECALL || m_OP == Instruction::STATICCALL)
{
callParams->apparentValue = m_ext->value;
callParams->valueTransfer = 0;
Expand Down

0 comments on commit 2b5f678

Please sign in to comment.