Skip to content

Commit 3740528

Browse files
committed
Test
1 parent 93352ca commit 3740528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

program/rust/src/tests/test_add_mapping.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use crate::c_oracle_header::{
66
};
77
use crate::deserialize::{
88
initialize_pyth_account_checked,
9+
load_account_as_mut,
910
load_checked,
1011
};
1112
use crate::instruction::{
@@ -110,8 +111,7 @@ fn test_add_mapping() {
110111
);
111112

112113
{
113-
let mut cur_mapping_data =
114-
load_checked::<MappingAccount>(&cur_mapping, PC_VERSION, &program_id).unwrap();
114+
let mut cur_mapping_data = load_account_as_mut::<MappingAccount>(&cur_mapping).unwrap();
115115
cur_mapping_data.magic_ = PC_MAGIC;
116116
}
117117

0 commit comments

Comments
 (0)