Skip to content

Commit

Permalink
Selfdestructed contract accounts should be removed from pallet system (
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ authored Dec 2, 2024
1 parent 5634981 commit 8cb5bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/evm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ impl<T: Config> Pallet<T> {
pub fn remove_account(address: &H160) {
if <AccountCodes<T>>::contains_key(address) {
let account_id = T::AddressMapping::into_account_id(*address);
let _ = frame_system::Pallet::<T>::dec_sufficients(&account_id);
frame_system::Account::<T>::remove(account_id);
}

<AccountCodes<T>>::remove(address);
Expand Down

0 comments on commit 8cb5bc7

Please sign in to comment.