7
7
ProductAccount ,
8
8
PythAccount ,
9
9
} ,
10
- c_oracle_header:: PC_VERSION ,
10
+ c_oracle_header:: {
11
+ PC_VERSION ,
12
+ PRICE_ACCOUNT_DEFAULT_MIN_PUB ,
13
+ } ,
11
14
deserialize:: load_checked,
12
15
error:: OracleError ,
13
16
instruction:: {
@@ -82,6 +85,7 @@ fn test_add_price() {
82
85
let product_data = load_checked :: < ProductAccount > ( & product_account, PC_VERSION ) . unwrap ( ) ;
83
86
assert_eq ! ( price_data. exponent, 1 ) ;
84
87
assert_eq ! ( price_data. price_type, 1 ) ;
88
+ assert_eq ! ( price_data. min_pub_, PRICE_ACCOUNT_DEFAULT_MIN_PUB ) ;
85
89
assert ! ( price_data. product_account == * product_account. key) ;
86
90
assert ! ( price_data. next_price_account == Pubkey :: default ( ) ) ;
87
91
assert ! ( product_data. first_price_account == * price_account. key) ;
@@ -103,6 +107,7 @@ fn test_add_price() {
103
107
let product_data = load_checked :: < ProductAccount > ( & product_account, PC_VERSION ) . unwrap ( ) ;
104
108
assert_eq ! ( price_data_2. exponent, 1 ) ;
105
109
assert_eq ! ( price_data_2. price_type, 1 ) ;
110
+ assert_eq ! ( price_data_2. min_pub_, PRICE_ACCOUNT_DEFAULT_MIN_PUB ) ;
106
111
assert ! ( price_data_2. product_account == * product_account. key) ;
107
112
assert ! ( price_data_2. next_price_account == * price_account. key) ;
108
113
assert ! ( product_data. first_price_account == * price_account_2. key) ;
0 commit comments