mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
bug: wipe storage only on selfdestruct (#1319)
This commit is contained in:
@ -175,11 +175,8 @@ where
|
||||
}
|
||||
};
|
||||
|
||||
let mut wipe_storage = false;
|
||||
|
||||
new_account.account_state = if account.storage_cleared {
|
||||
new_account.storage.clear();
|
||||
wipe_storage = true;
|
||||
AccountState::StorageCleared
|
||||
} else {
|
||||
AccountState::Touched
|
||||
@ -197,7 +194,11 @@ where
|
||||
// Insert into change.
|
||||
change.insert(
|
||||
address,
|
||||
AccountChangeSet { account: account_info_changeset, storage, wipe_storage },
|
||||
AccountChangeSet {
|
||||
account: account_info_changeset,
|
||||
storage,
|
||||
wipe_storage: false,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user