From 83179cedcb6b8fa8878f13d9963995e9d80c922d Mon Sep 17 00:00:00 2001 From: Danno Ferrin Date: Mon, 16 Dec 2024 16:38:58 -0700 Subject: [PATCH] Update EXTCALL creation detection Update the EXTCALL account creation detection to match legacy call detection. Signed-off-by: Danno Ferrin --- .../besu/evm/operation/AbstractExtCallOperation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evm/src/main/java/org/hyperledger/besu/evm/operation/AbstractExtCallOperation.java b/evm/src/main/java/org/hyperledger/besu/evm/operation/AbstractExtCallOperation.java index 5f6c70eb668..2c80007c769 100644 --- a/evm/src/main/java/org/hyperledger/besu/evm/operation/AbstractExtCallOperation.java +++ b/evm/src/main/java/org/hyperledger/besu/evm/operation/AbstractExtCallOperation.java @@ -136,7 +136,7 @@ public OperationResult execute(final MessageFrame frame, final EVM evm) { } } - boolean accountCreation = contract == null && !zeroValue; + boolean accountCreation = (contract == null || contract.isEmpty()) && !zeroValue; long cost = clampedAdd( clampedAdd(