Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit ced24cb

Browse files
committed
Adapt to AccountSharedData
1 parent 6263766 commit ced24cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-memory/program/tests/shared-memory.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use solana_bpf_loader_program::serialization::serialize_parameters;
22
use solana_program::{
33
bpf_loader, entrypoint::SUCCESS, program_error::ProgramError, pubkey::Pubkey,
44
};
5-
use solana_sdk::{account::Account, keyed_account::KeyedAccount};
5+
use solana_sdk::{account::AccountSharedData, keyed_account::KeyedAccount};
66
use spl_shared_memory::entrypoint;
77

88
// TODO: Rework `assert_instruction_count` test to use solana-program-test, avoiding the need to
@@ -89,7 +89,7 @@ fn test_share_data() {
8989
const NUM_TO_SHARE: usize = 500;
9090
let program_id = Pubkey::new(&[0; 32]);
9191
let shared_key = Pubkey::new_unique();
92-
let shared_account = Account::new_ref(u64::MAX, NUM_TO_SHARE * 2, &program_id);
92+
let shared_account = AccountSharedData::new_ref(u64::MAX, NUM_TO_SHARE * 2, &program_id);
9393

9494
// success
9595
let content = vec![42; NUM_TO_SHARE];

0 commit comments

Comments
 (0)