Skip to content

Commit cbb6e49

Browse files
ahmadkaoukRomarQ
andauthored
avoid using deprecated method
Co-authored-by: Rodrigo Quelhas <22591718+RomarQ@users.noreply.github.com>
1 parent 982dab0 commit cbb6e49

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frame/evm/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,8 +827,7 @@ impl<T: Config> Pallet<T> {
827827

828828
<AccountCodes<T>>::remove(address);
829829
<AccountCodesMetadata<T>>::remove(address);
830-
#[allow(deprecated)]
831-
let _ = <AccountStorages<T>>::remove_prefix(address, None);
830+
let _ = <AccountStorages<T>>::clear_prefix(address, u32::max_value(), None);
832831
}
833832

834833
/// Create an account.

0 commit comments

Comments
 (0)