assert-owner: Cargo fmt to fix build

This commit is contained in:
armaniferrante 2020-10-26 09:50:38 -07:00
parent 6138ca9828
commit be3fb60bac
No known key found for this signature in database
GPG Key ID: 58BEF301E91F7828
1 changed files with 3 additions and 11 deletions

View File

@ -1,18 +1,10 @@
use solana_program::{
pubkey::Pubkey,
account_info::AccountInfo,
program_error::ProgramError,
entrypoint::ProgramResult,
info,
entrypoint,
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, info,
program_error::ProgramError, pubkey::Pubkey,
};
entrypoint!(entry);
fn entry(
_program_id: &Pubkey,
accounts: &[AccountInfo],
instruction_data: &[u8],
) -> ProgramResult {
fn entry(_program_id: &Pubkey, accounts: &[AccountInfo], instruction_data: &[u8]) -> ProgramResult {
let account = accounts.get(0).ok_or(ProgramError::NotEnoughAccountKeys)?;
if instruction_data.len() != 32 {
return Err(ProgramError::InvalidInstructionData);