@@ -14,7 +14,7 @@ Test(oracle, init_mapping) {
14
14
SolPubkey p_id2 = {.x = { 0xfe , }};
15
15
SolPubkey pkey = {.x = { 1 , }};
16
16
SolPubkey mkey = {.x = { 2 , }};
17
- uint64_t pqty = 100 , mqty = 200 ;
17
+ uint64_t pqty = 100 ;
18
18
pc_map_table_t mptr [1 ];
19
19
sol_memset ( mptr , 0 , sizeof ( pc_map_table_t ) );
20
20
SolAccountInfo acc [] = {{
@@ -95,7 +95,7 @@ Test(oracle, add_mapping ) {
95
95
SolPubkey pkey = {.x = { 1 , }};
96
96
SolPubkey tkey = {.x = { 2 , }};
97
97
SolPubkey mkey = {.x = { 3 , }};
98
- uint64_t pqty = 100 , tqty = 100 , mqty = 200 ;
98
+ uint64_t pqty = 100 , tqty = 100 ;
99
99
pc_map_table_t mptr [1 ];
100
100
sol_memset ( mptr , 0 , sizeof ( pc_map_table_t ) );
101
101
SolAccountInfo acc [] = {{
@@ -160,12 +160,11 @@ Test(oracle, add_product) {
160
160
.cmd_ = e_cmd_add_product ,
161
161
};
162
162
SolPubkey p_id = {.x = { 0xff , }};
163
- SolPubkey p_id2 = {.x = { 0xfe , }};
164
163
SolPubkey pkey = {.x = { 1 , }};
165
164
SolPubkey mkey = {.x = { 2 , }};
166
165
SolPubkey skey = {.x = { 3 , }};
167
166
SolPubkey skey2 = {.x = { 4 , }};
168
- uint64_t pqty = 100 , mqty = 200 ;
167
+ uint64_t pqty = 100 ;
169
168
pc_map_table_t mptr [1 ];
170
169
sol_memset ( mptr , 0 , sizeof ( pc_map_table_t ) );
171
170
mptr -> magic_ = PC_MAGIC ;
@@ -257,7 +256,6 @@ Test( oracle, add_publisher ) {
257
256
.pub_ = { .k8_ = { 3UL , 4UL , 5UL , 6UL } }
258
257
};
259
258
SolPubkey p_id = {.x = { 0xff , }};
260
- SolPubkey p_id2 = {.x = { 0xfe , }};
261
259
SolPubkey pkey = {.x = { 1 , }};
262
260
SolPubkey skey = {.x = { 3 , }};
263
261
uint64_t pqty = 100 , sqty = 200 ;
@@ -348,7 +346,6 @@ Test( oracle, upd_price ) {
348
346
.pub_slot_ = 1
349
347
};
350
348
SolPubkey p_id = {.x = { 0xff , }};
351
- SolPubkey p_id2 = {.x = { 0xfe , }};
352
349
SolPubkey pkey = {.x = { 1 , }};
353
350
SolPubkey skey = {.x = { 3 , }};
354
351
sysvar_clock_t cvar = {
@@ -534,8 +531,6 @@ Test( oracle, del_publisher ) {
534
531
.status_ = PC_STATUS_TRADING , .pub_slot_ = 42 };
535
532
pc_price_info_t p2 = { .price_ = 200 , .conf_ = 20 ,
536
533
.status_ = PC_STATUS_TRADING , .pub_slot_ = 42 };
537
- pc_price_info_t p3 = { .price_ = 300 , .conf_ = 30 ,
538
- .status_ = PC_STATUS_TRADING , .pub_slot_ = 42 };
539
534
540
535
// start with perfect inputs
541
536
pc_pub_key_t p_id = { .k8_ = { 1 , 2 , 3 , 4 } };
0 commit comments