Skip to content

Commit

Permalink
fix: warmup recipient in selfdestruct (#954)
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Sep 17, 2024
1 parent 7da293d commit a3e5da8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/evm/src/instructions/system_operations.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit a3e5da8

Please sign in to comment.