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

Commit 34b729b

Browse files
committed
interpreter: Fix call depth handling in CALLs
1 parent e1f8a1f commit 34b729b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libaleth-interpreter/VMCalls.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ bool VM::caseCallSetup(evmc_message& o_msg, bytesRef& o_output)
258258
m_runGas = o_msg.gas;
259259
updateIOGas();
260260

261+
o_msg.depth = m_message->depth + 1;
261262
o_msg.destination = destination;
262263
o_msg.sender = m_message->destination;
263264
o_msg.input_data = m_mem.data() + size_t(inputOffset);

0 commit comments

Comments
 (0)