Skip to content

Commit

Permalink
avoid using deprecated method
Browse files Browse the repository at this point in the history
Co-authored-by: Rodrigo Quelhas <[email protected]>
  • Loading branch information
ahmadkaouk and RomarQ authored May 22, 2024
1 parent 982dab0 commit cbb6e49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frame/evm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,7 @@ impl<T: Config> Pallet<T> {

<AccountCodes<T>>::remove(address);
<AccountCodesMetadata<T>>::remove(address);
#[allow(deprecated)]
let _ = <AccountStorages<T>>::remove_prefix(address, None);
let _ = <AccountStorages<T>>::clear_prefix(address, u32::max_value(), None);
}

/// Create an account.
Expand Down

0 comments on commit cbb6e49

Please sign in to comment.