Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Aug 23, 2024
1 parent a7fd699 commit c5d1272
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/evm/src/backend/starknet_backend.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ mod internals {
let (evm_address, key, value) = self.accounts_storage.changes.get(*state_key).deref();
let mut account = self.get_account(evm_address);
// @dev: EIP-6780 - If selfdestruct on an account created, dont commit data
if account.is_selfdestruct(){
if account.is_selfdestruct() {
continue;
}
IAccountDispatcher { contract_address: account.starknet_address() }
Expand Down
2 changes: 1 addition & 1 deletion crates/evm/src/create_helpers.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl CreateHelpersImpl of CreateHelpers {
// - it's deployed on SN and is an active EVM contract
// - it's not deployed on SN and is an active EVM contract in the Kakarot cache
if target_account.has_code_or_nonce() {
sender.set_nonce(sender.nonce() + 1);
sender.set_nonce(sender_current_nonce + 1);
self.env.state.set_account(sender);
return self.stack.push(0);
};
Expand Down

0 comments on commit c5d1272

Please sign in to comment.