This commit is contained in:
Armani Ferrante 2022-02-09 16:44:09 -05:00
parent 3b680a6cf9
commit b45bb8a914
No known key found for this signature in database
GPG Key ID: D597A80BCF8E12B7
2 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,7 @@ pub fn read_discriminator(data: &[u8]) -> &[u8; 8] {
}
#[cfg(not(feature = "deprecated-layout"))]
pub fn read_discriminator<'a>(data: &[u8]) -> &[u8; 4] {
pub fn read_discriminator(data: &[u8]) -> &[u8; 4] {
array_ref![data, 2, 4]
}

View File

@ -1,7 +1,6 @@
use crate::accounts::header;
use crate::error::ErrorCode;
use crate::*;
use arrayref::array_ref;
use solana_program::account_info::AccountInfo;
use solana_program::entrypoint::ProgramResult;
use solana_program::instruction::AccountMeta;