use the right processor based on message type (#3900)

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
pull/3903/head
Antoine Toulme 3 years ago committed by GitHub
parent 884ec09fab
commit 51ba246883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      evm/src/main/java/org/hyperledger/besu/evm/fluent/EVMExecutor.java

@ -232,10 +232,10 @@ public class EVMExecutor {
final MessageFrame messageFrame = messageFrameStack.peek();
switch (messageFrame.getType()) {
case CONTRACT_CREATION:
mcp.process(messageFrame, tracer);
ccp.process(messageFrame, tracer);
break;
case MESSAGE_CALL:
ccp.process(messageFrame, tracer);
mcp.process(messageFrame, tracer);
break;
}
}

Loading…
Cancel
Save