pub fn create_module_resolver(
    protocol_version: u64,
) -> Result<impl ModuleImportResolver + MemoryResolver, ResolverError> {
    match protocol_version {
        1 => Ok(v1_resolver::RuntimeModuleImportResolver::default()),
        _ => Err(ResolverError::UnknownProtocolVersion(protocol_version)),
    }
}
/// Creates a module resolver for given protocol version.
///
/// * `protocol_version` Version of the protocol. Can't be lower than 1.
Creates a module resolver for given protocol version.
`protocol_version` Version of the protocol. Can't be lower than 1.
Creates a module resolver for given protocol version . ` protocol_version ` Version of the protocol . Can ' t be lower than 1 .
pub fn create_module_resolver(
    protocol_version: u64,
) -> Result<impl ModuleImportResolver + MemoryResolver, ResolverError> {
    match protocol_version {
        1 => Ok(v1_resolver::RuntimeModuleImportResolver::default()),
        _ => Err(ResolverError::UnknownProtocolVersion(protocol_version)),
    }
}
pub fn create_module_resolver ( protocol_version : u64 , ) -> Result < impl ModuleImportResolver + MemoryResolver , ResolverError > { match protocol_version { 1 => Ok ( v1_resolver :: RuntimeModuleImportResolver :: default ( ) ) , _ => Err ( ResolverError :: UnknownProtocolVersion ( protocol_version ) ) , } }
Creates a module resolver for given protocol version.
Creates a module resolver for given protocol version .
protocol_version
u64
protocol_version
u64