Copy opCodeExec to child computation

This commit is contained in:
coffeepots 2018-09-18 13:03:22 +01:00
parent 4a944398c9
commit d435e434ec
1 changed files with 4 additions and 0 deletions

View File

@ -168,6 +168,10 @@ proc generateChildComputation*(fork: Fork, computation: BaseComputation, childMs
computation.vmState,
computation.vmState.blockHeader.blockNumber,
childMsg)
# Copy the fork op code executor proc (assumes child computation is in the same fork)
childComp.opCodeExec = computation.opCodeExec
if childMsg.isCreate:
fork.applyCreateMessage(childComp)
else: