diff --git a/precompiles/src/precompile_set.rs b/precompiles/src/precompile_set.rs index ebe2d11cfd..7c29486c41 100644 --- a/precompiles/src/precompile_set.rs +++ b/precompiles/src/precompile_set.rs @@ -1087,13 +1087,14 @@ impl PrecompileSetBuilder } } - /// Return the list of addresses contained in this PrecompileSet. + /// Return the list of mapped addresses contained in this PrecompileSet. pub fn used_addresses() -> impl Iterator { - Self::new() - .inner - .used_addresses() - .into_iter() - .map(R::AddressMapping::into_account_id) + Self::used_addresses_h160().map(R::AddressMapping::into_account_id) + } + + /// Return the list of H160 addresses contained in this PrecompileSet. + pub fn used_addresses_h160() -> impl Iterator { + Self::new().inner.used_addresses().into_iter() } pub fn summarize_checks(&self) -> Vec {