Skip to main content

SetCodeAuthorizationAuthorityView

Trait SetCodeAuthorizationAuthorityView 

Source
pub trait SetCodeAuthorizationAuthorityView {
    // Required method
    fn authority_for(
        &self,
        authorization_index: usize,
        authorization: SetCodeAuthorization,
    ) -> Option<Address>;
}
Expand description

Caller-provided source of recovered authorization authorities.

The slice implementation is intended for tests and small fixtures. Production callers with large authorization lists should use an indexed implementation to avoid repeated linear scans.

Required Methods§

Source

fn authority_for( &self, authorization_index: usize, authorization: SetCodeAuthorization, ) -> Option<Address>

Returns the recovered authority for authorization at authorization_index.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SetCodeAuthorizationAuthorityView for [SetCodeAuthorizationAuthority]

Source§

fn authority_for( &self, authorization_index: usize, _authorization: SetCodeAuthorization, ) -> Option<Address>

Implementors§