Skip to content

Commit

Permalink
used_addresses return H160
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Mar 27, 2024
1 parent 76939a1 commit 73d814d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions precompiles/src/precompile_set.rs
Expand Up @@ -1088,13 +1088,10 @@ impl<R: pallet_evm::Config, P: PrecompileSetFragment> PrecompileSetBuilder<R, P>
}

/// Return the list of addresses contained in this PrecompileSet.
pub fn used_addresses() -> impl Iterator<Item = R::AccountId> {
Self::new()
.inner
.used_addresses()
.into_iter()
.map(R::AddressMapping::into_account_id)
}
/// Return the list of addresses contained in this PrecompileSet.
pub fn used_addresses() -> impl Iterator<Item = H160> {
Self::new().inner.used_addresses().into_iter()
}

pub fn summarize_checks(&self) -> Vec<PrecompileCheckSummary> {
self.inner.summarize_checks()
Expand Down

0 comments on commit 73d814d

Please sign in to comment.