fix misaligned bytes in test (#2373)

This commit is contained in:
Henry-E 2023-01-26 17:40:49 +00:00 committed by GitHub
parent ed2769ef28
commit 21c3b3c7b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ pub struct TestNonAccountStruct {
#[account(zero_copy)]
#[derive(InitSpace)]
pub struct TestZeroCopyStruct {
pub test_array: [u8; 10],
pub test_array: [u8; 8],
pub test_u32: u32,
}
@ -108,7 +108,7 @@ fn test_complexe_struct() {
#[test]
fn test_zero_copy_struct() {
assert_eq!(TestZeroCopyStruct::INIT_SPACE, 10 + 4)
assert_eq!(TestZeroCopyStruct::INIT_SPACE, 8 + 4)
}
#[test]