From 5e031e2ab1d139193d324029dc0f6982bd83ef93 Mon Sep 17 00:00:00 2001 From: maximopalopoli Date: Fri, 22 Nov 2024 17:07:52 -0300 Subject: [PATCH] Set calldata as empty bytes at contract creation --- crates/vm/levm/src/vm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/vm/levm/src/vm.rs b/crates/vm/levm/src/vm.rs index f3041fbbf..f6d21a1b9 100644 --- a/crates/vm/levm/src/vm.rs +++ b/crates/vm/levm/src/vm.rs @@ -134,7 +134,7 @@ impl VM { new_contract_address, code, value, - calldata.clone(), + Bytes::new(), false, env.gas_limit.min(MAX_BLOCK_GAS_LIMIT), TX_BASE_COST,