From a3e5da8ca51ee9223e0c3e6f0c9588b665a18ce9 Mon Sep 17 00:00:00 2001 From: Mathieu <60658558+enitrat@users.noreply.github.com> Date: Tue, 17 Sep 2024 18:29:32 +0200 Subject: [PATCH] fix: warmup recipient in selfdestruct (#954) --- crates/evm/src/instructions/system_operations.cairo | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/evm/src/instructions/system_operations.cairo b/crates/evm/src/instructions/system_operations.cairo index d62dbc79b..c6acbf01f 100644 --- a/crates/evm/src/instructions/system_operations.cairo +++ b/crates/evm/src/instructions/system_operations.cairo @@ -320,6 +320,7 @@ pub impl SystemOperations of SystemOperationsTrait { // GAS let mut gas_cost = gas::SELFDESTRUCT; if !self.accessed_addresses.contains(recipient) { + self.accessed_addresses.add(recipient); gas_cost += gas::COLD_ACCOUNT_ACCESS_COST; };