Function ore_api::loaders::load_any_bus
source ยท pub fn load_any_bus<'a, 'info>(
info: &'a AccountInfo<'info>,
is_writable: bool,
) -> Result<(), ProgramError>
Expand description
Errors if:
- Owner is not Ore program.
- Data is empty.
- Data cannot deserialize into a bus account.
- Bus ID is not in the expected range.
- Address is not in set of valid bus address.
- Expected to be writable, but is not.