77 ProductAccount ,
88 PythAccount ,
99 } ,
10- c_oracle_header:: PC_VERSION ,
10+ c_oracle_header:: {
11+ PC_VERSION ,
12+ PRICE_ACCOUNT_DEFAULT_MIN_PUB ,
13+ } ,
1114 deserialize:: load_checked,
1215 error:: OracleError ,
1316 instruction:: {
@@ -82,6 +85,7 @@ fn test_add_price() {
8285 let product_data = load_checked :: < ProductAccount > ( & product_account, PC_VERSION ) . unwrap ( ) ;
8386 assert_eq ! ( price_data. exponent, 1 ) ;
8487 assert_eq ! ( price_data. price_type, 1 ) ;
88+ assert_eq ! ( price_data. min_pub_, PRICE_ACCOUNT_DEFAULT_MIN_PUB ) ;
8589 assert ! ( price_data. product_account == * product_account. key) ;
8690 assert ! ( price_data. next_price_account == Pubkey :: default ( ) ) ;
8791 assert ! ( product_data. first_price_account == * price_account. key) ;
@@ -103,6 +107,7 @@ fn test_add_price() {
103107 let product_data = load_checked :: < ProductAccount > ( & product_account, PC_VERSION ) . unwrap ( ) ;
104108 assert_eq ! ( price_data_2. exponent, 1 ) ;
105109 assert_eq ! ( price_data_2. price_type, 1 ) ;
110+ assert_eq ! ( price_data_2. min_pub_, PRICE_ACCOUNT_DEFAULT_MIN_PUB ) ;
106111 assert ! ( price_data_2. product_account == * product_account. key) ;
107112 assert ! ( price_data_2. next_price_account == * price_account. key) ;
108113 assert ! ( product_data. first_price_account == * price_account_2. key) ;
0 commit comments