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

Commit

Permalink
interpreter: Fix call depth handling in CALLs
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Jul 10, 2019
1 parent 8af81f8 commit 95ab8e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libaleth-interpreter/VMCalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ bool VM::caseCallSetup(evmc_message& o_msg, bytesRef& o_output)
m_runGas = o_msg.gas;
updateIOGas();

o_msg.depth = m_message->depth + 1;
o_msg.destination = destination;
o_msg.sender = m_message->destination;
o_msg.input_data = m_mem.data() + size_t(inputOffset);
Expand Down

0 comments on commit 95ab8e2

Please sign in to comment.