From 42c3aa0f7ff5a877553aa833f2e9cebe169b5d95 Mon Sep 17 00:00:00 2001 From: ChihChengLiang Date: Fri, 23 Feb 2024 01:52:01 +0800 Subject: [PATCH] rm must_create --- zkevm-circuits/src/evm_circuit/execution/begin_tx.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zkevm-circuits/src/evm_circuit/execution/begin_tx.rs b/zkevm-circuits/src/evm_circuit/execution/begin_tx.rs index f7c99eb3f7f..30a71ee41e4 100644 --- a/zkevm-circuits/src/evm_circuit/execution/begin_tx.rs +++ b/zkevm-circuits/src/evm_circuit/execution/begin_tx.rs @@ -467,14 +467,13 @@ impl ExecutionGadget for BeginTxGadget { let callee_exists = is_precompiled(&tx.to_or_contract_addr()) || !callee_code_hash.is_zero(); let caller_balance_sub_fee_pair = rws.next().account_balance_pair(); - let must_create = tx.is_create(); let caller_balance_sub_value_pair = if !tx.value.is_zero() { rws.next().account_balance_pair() } else { (zero, zero) }; - if !callee_exists && (!tx.value.is_zero() || must_create) { + if !callee_exists && (!tx.value.is_zero() || tx.is_create()) { callee_code_hash = rws.next().account_codehash_pair().1; } let callee_balance_pair = if !tx.value.is_zero() {