Skip to main content

require_version

Function require_version 

Source
pub fn require_version<T: LayoutContract>(
    account: &AccountView,
) -> ProgramResult
Expand description

Require the account’s version byte matches the layout contract’s VERSION.