pub fn load_bus<'a, 'info>(
info: &'a AccountInfo<'info>,
id: u64,
is_writable: bool,
) -> Result<(), ProgramError>
Expand description
Errors if:
- Owner is not Ore program.
- Address does not match the expected bus address.
- Data is empty.
- Data cannot deserialize into a bus account.
- Bus ID does not match the expected ID.
- Expected to be writable, but is not.