Function solana_client::nonce_utils::account_identity_ok

source ·
pub fn account_identity_ok<T>(account: &T) -> Result<(), Error>
where T: ReadableAccount,
Expand description

Perform basic checks that an account has nonce-like properties.

§Errors

Returns Error::InvalidAccountOwner if the account is not owned by the system program. Returns Error::UnexpectedDataSize if the account contains no data.