@@ -7,7 +7,6 @@ mod time_machine_types;
77use crate :: log:: { post_log, pre_log} ;
88use borsh:: { BorshDeserialize , BorshSerialize } ;
99use solana_program:: entrypoint:: deserialize;
10- use solana_program:: entrypoint:: deserialize;
1110
1211//Below is a high lever description of the rust/c setup.
1312
@@ -41,7 +40,7 @@ pub extern "C" fn c_entrypoint(input: *mut u8) -> u64 {
4140
4241#[ no_mangle]
4342pub extern "C" fn entrypoint ( input : * mut u8 ) -> u64 {
44- let ( _program_id , accounts, instruction_data) = unsafe { deserialize ( input) } ;
43+ let ( program_id , accounts, instruction_data) = unsafe { deserialize ( input) } ;
4544
4645 match pre_log ( & accounts, instruction_data) {
4746 Err ( error) => return error. into ( ) ,
@@ -67,10 +66,10 @@ pub extern "C" fn entrypoint(input: *mut u8) -> u64 {
6766 c_oracle_header:: command_t_e_cmd_upd_price
6867 | c_oracle_header:: command_t_e_cmd_upd_price_no_fail_on_error
6968 | c_oracle_header:: command_t_e_cmd_agg_price => {
70- rust_oracle:: update_price ( program_id, accounts, instruction_data, input)
69+ rust_oracle:: update_price ( program_id, & accounts, & instruction_data, input)
7170 }
7271 c_oracle_header:: command_t_e_cmd_upd_account_version => {
73- rust_oracle:: update_version ( program_id, accounts, instruction_data)
72+ rust_oracle:: update_version ( program_id, & accounts, & instruction_data)
7473 }
7574 _ => unsafe { return c_entrypoint ( input) } ,
7675 } ;
0 commit comments