Skip to main content

IntoAccountMetas

Trait IntoAccountMetas 

Source
pub trait IntoAccountMetas {
    // Required method
    fn into_account_metas(self, program_id: Pubkey) -> Vec<AccountMeta>;
}
Expand description

A fix for the auto derived anchor ToAccountMetas trait. The anchor one works incorrectly with Option accounts when program ID is different from the canonical one.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§