pub fn load_bus(
info: &AccountInfo<'_>,
id: u64,
is_writable: bool,
) -> Result<(), ProgramError>
Expand description
Errors if:
- Owner is not Marsh 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.