-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the feature you would like
we have
Line 239 in b83a678
| impl EvmFactory for EthEvmFactory { |
it would be useful to have some generic type that takes a default EvmFactory and takes care of the PrecompileMap init based in the specid
this can be a generic EvmFactoryWith<Evm, PrecompilesInit>
where PrecompilesInit takes care of modifiying the configured precompilesmap
Lines 256 to 258 in b83a678
| .with_precompiles(PrecompilesMap::from_static(Precompiles::new( | |
| PrecompileSpecId::from_spec_id(spec_id), | |
| ))), |
something like
trait PrecompileModifies<SpecId> {
fn modify(&self, precompiles: &mut PrecompilesMap, specid: SpecId)
}
Additional context
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request