@@ -6,7 +6,7 @@ use solana_program::entrypoint::ProgramResult;
66use solana_program:: msg;
77use std:: mem:: size_of;
88
9- pub fn pre_log ( accounts : & [ AccountInfo ] , instruction_data : & [ u8 ] ) -> ProgramResult {
9+ pub fn pre_log ( accounts : & [ AccountInfo ] , instruction_data : & [ u8 ] ) -> ProgramResult {
1010 msg ! ( "Pyth oracle contract" ) ;
1111
1212 let instruction_header: cmd_hdr = cmd_hdr:: try_from_slice ( & instruction_data[ ..8 ] ) ?;
@@ -15,7 +15,7 @@ pub fn pre_log(accounts : &[AccountInfo], instruction_data: &[u8]) -> ProgramRes
1515 . try_into ( )
1616 . map_err ( |_| OracleError :: Generic ) ?;
1717 match instruction_id {
18- command_t_e_cmd_upd_price | command_t_e_cmd_agg_price=> {
18+ command_t_e_cmd_upd_price | command_t_e_cmd_agg_price => {
1919 let instruction: cmd_upd_price = cmd_upd_price:: try_from_slice ( instruction_data) ?;
2020 msg ! (
2121 "UpdatePrice: publisher={:}, price_account={:}, price={:}, conf={:}, status={:}, slot={:}" ,
@@ -29,7 +29,7 @@ pub fn pre_log(accounts : &[AccountInfo], instruction_data: &[u8]) -> ProgramRes
2929 instruction. pub_slot_
3030 ) ;
3131 }
32- command_t_e_cmd_upd_price_no_fail_on_error=> {
32+ command_t_e_cmd_upd_price_no_fail_on_error => {
3333 let instruction: cmd_upd_price = cmd_upd_price:: try_from_slice ( instruction_data) ?;
3434 msg ! (
3535 "UpdatePriceNoFailOnError: publisher={:}, price_account={:}, price={:}, conf={:}, status={:}, slot={:}" ,
@@ -93,8 +93,7 @@ pub fn post_log(c_ret_val: u64, accounts: &[AccountInfo]) -> ProgramResult {
9393 ) ?;
9494 msg ! (
9595 "UpdateAggregate : price_account={:}, price={:}, conf={:}, status={:}, slot={:}" ,
96- accounts. get( 1 )
97- . ok_or( OracleError :: Generic ) ?. key,
96+ accounts. get( 1 ) . ok_or( OracleError :: Generic ) ?. key,
9897 aggregate_price_info. price_,
9998 aggregate_price_info. conf_,
10099 aggregate_price_info. status_,
0 commit comments