updated EXTDELEGATECALL won't work with EOA/empty

Signed-off-by: Danno Ferrin <danno@numisight.com>
mega-eof
Danno Ferrin 6 months ago
parent e1d74231af
commit 5f29832d09
  1. 4
      evm/src/main/java/org/hyperledger/besu/evm/operation/AbstractCallOperation.java

@ -220,9 +220,7 @@ public abstract class AbstractCallOperation extends AbstractOperation {
}
// delegate calls to prior EOF versions are prohibited
if (isDelegate()
&& frame.getCode().getEofVersion() > code.getEofVersion()
&& code.getSize() > 0) {
if (isDelegate() && frame.getCode().getEofVersion() > code.getEofVersion()) {
// "Light failure" - Push failure and continue execution
frame.popStackItems(getStackItemsConsumed());
frame.pushStackItem(EOF1_EXCEPTION_STACK_ITEM);

Loading…
Cancel
Save