Function load_signer
Source pub fn load_signer(
info: &AccountInfo,
expect_writable: bool,
) -> Result<(), ProgramError>
Expand description
Loads the account as a signer, returning an error if it is not or if it is not writable while
expected to be.
§Arguments
info
- The account to load the signer from
expect_writable
- Whether the account should be writable
§Returns
Result<(), ProgramError>
- The result of the operation